Skip to content

Commit bdfdf1a

Browse files
committed
xrRenderDX10: Move dx10MinMaxSMBlender to xrRenderDX10.
1 parent 31375c9 commit bdfdf1a

File tree

11 files changed

+28
-55
lines changed

11 files changed

+28
-55
lines changed

src/Layers/xrRender/r__screenshot.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,13 @@ IC void MouseRayFromPoint ( Fvector& direction, int x, int y, Fmatrix& m_CamMat
3838
#define SM_FOR_SEND_WIDTH 640
3939
#define SM_FOR_SEND_HEIGHT 480
4040

41-
#if defined(USE_DX10) || defined(USE_DX11)
41+
#if defined(USE_OGL)
42+
void CRender::ScreenshotImpl(ScreenshotMode mode, LPCSTR name, CMemoryWriter* memory_writer)
43+
{
44+
// TODO: OGL: Implement screenshot feature.
45+
}
46+
47+
#elif defined(USE_DX10) || defined(USE_DX11)
4248
void CRender::ScreenshotImpl (ScreenshotMode mode, LPCSTR name, CMemoryWriter* memory_writer)
4349
{
4450
ID3DResource *pSrcTexture;

src/Layers/xrRenderPC_GL/glMinMaxSMBlender.cpp

Lines changed: 0 additions & 23 deletions
This file was deleted.

src/Layers/xrRenderPC_GL/glMinMaxSMBlender.h

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/Layers/xrRenderPC_GL/gl_rendertarget.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include "blender_bloom_build.h"
1111
#include "blender_luminance.h"
1212
#include "blender_ssao.h"
13+
#include "Layers/xrRenderDX10/dx10MinMaxSMBlender.h"
1314
#include "Layers/xrRenderDX10/msaa/dx10MSAABlender.h"
1415
#include "Layers/xrRenderDX10/DX10 Rain/dx10RainBlender.h"
1516

src/Layers/xrRenderPC_GL/xrRender_GL.vcxproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@
205205
<ItemGroup>
206206
<ClCompile Include="..\xrRenderDX10\Blender_Recorder_R3.cpp" />
207207
<ClCompile Include="..\xrRenderDX10\DX10 Rain\dx10RainBlender.cpp" />
208+
<ClCompile Include="..\xrRenderDX10\dx10MinMaxSMBlender.cpp" />
208209
<ClCompile Include="..\xrRenderGL\glHW.cpp" />
209210
<ClCompile Include="..\xrRenderGL\glBufferUtils.cpp" />
210211
<ClCompile Include="..\xrRenderGL\glDetailManager_VS.cpp" />
@@ -254,6 +255,7 @@
254255
<ClCompile Include="..\xrRender\Light_Render_Direct_ComputeXFS.cpp" />
255256
<ClCompile Include="..\xrRender\ModelPool.cpp" />
256257
<ClCompile Include="..\xrRender\R_DStreams.cpp" />
258+
<ClCompile Include="..\xrRender\r__screenshot.cpp" />
257259
<ClCompile Include="..\xrRender\Shader.cpp" />
258260
<ClCompile Include="blender_bloom_build.cpp" />
259261
<ClCompile Include="blender_combine.cpp" />
@@ -268,7 +270,6 @@
268270
<ClCompile Include="blender_light_spot.cpp" />
269271
<ClCompile Include="blender_luminance.cpp" />
270272
<ClCompile Include="blender_ssao.cpp" />
271-
<ClCompile Include="glMinMaxSMBlender.cpp" />
272273
<ClCompile Include="gl_loader.cpp" />
273274
<ClCompile Include="gl_rendertarget_accum_direct.cpp" />
274275
<ClCompile Include="gl_rendertarget_accum_omnipart_geom.cpp" />
@@ -404,6 +405,7 @@
404405
<ClInclude Include="..\..\Include\xrRender\UIShader.h" />
405406
<ClInclude Include="..\..\Include\xrRender\WallMarkArray.h" />
406407
<ClInclude Include="..\xrRenderDX10\DX10 Rain\dx10RainBlender.h" />
408+
<ClInclude Include="..\xrRenderDX10\dx10MinMaxSMBlender.h" />
407409
<ClInclude Include="..\xrRenderGL\glBufferUtils.h" />
408410
<ClInclude Include="..\xrRenderGL\glR_Backend_Runtime.h" />
409411
<ClInclude Include="..\xrRenderGL\glr_constants_cache.h" />
@@ -517,7 +519,6 @@
517519
<ClInclude Include="..\xrRender\uber_deffer.h" />
518520
<ClInclude Include="..\xrRender\WallmarksEngine.h" />
519521
<ClInclude Include="..\xrRender\xrRender_console.h" />
520-
<ClInclude Include="glMinMaxSMBlender.h" />
521522
<ClInclude Include="gl_rendertarget_wallmarks.h" />
522523
<ClInclude Include="r2_types.h" />
523524
<ClInclude Include="gl_rendertarget.h" />

src/Layers/xrRenderPC_GL/xrRender_GL.vcxproj.filters

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -660,12 +660,15 @@
660660
<ClCompile Include="gl_rendertarget_phase_ssao.cpp">
661661
<Filter>Core_Target</Filter>
662662
</ClCompile>
663-
<ClCompile Include="glMinMaxSMBlender.cpp">
664-
<Filter>Shading templates</Filter>
663+
<ClCompile Include="..\xrRender\r__screenshot.cpp">
664+
<Filter>Core</Filter>
665665
</ClCompile>
666666
<ClCompile Include="..\xrRender\Debug\dxPixEventWrapper.cpp">
667667
<Filter>Debug</Filter>
668668
</ClCompile>
669+
<ClCompile Include="..\xrRenderDX10\dx10MinMaxSMBlender.cpp">
670+
<Filter>Shading templates</Filter>
671+
</ClCompile>
669672
</ItemGroup>
670673
<ItemGroup>
671674
<ClInclude Include="stdafx.h">
@@ -1094,11 +1097,11 @@
10941097
<ClInclude Include="gl_rendertarget_wallmarks.h">
10951098
<Filter>Core_Target</Filter>
10961099
</ClInclude>
1097-
<ClInclude Include="glMinMaxSMBlender.h">
1098-
<Filter>Shading templates</Filter>
1099-
</ClInclude>
11001100
<ClInclude Include="..\xrRender\Debug\dxPixEventWrapper.h">
11011101
<Filter>Debug</Filter>
11021102
</ClInclude>
1103+
<ClInclude Include="..\xrRenderDX10\dx10MinMaxSMBlender.h">
1104+
<Filter>Shading templates</Filter>
1105+
</ClInclude>
11031106
</ItemGroup>
11041107
</Project>

src/Layers/xrRenderPC_R3/r3_rendertarget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include "blender_bloom_build.h"
1111
#include "blender_luminance.h"
1212
#include "blender_ssao.h"
13-
#include "dx10MinMaxSMBlender.h"
13+
#include "Layers/xrRenderDX10/dx10MinMaxSMBlender.h"
1414
#include "Layers/xrRenderDX10/msaa/dx10MSAABlender.h"
1515
#include "Layers/xrRenderDX10/DX10 Rain/dx10RainBlender.h"
1616
#include <D3DX10Tex.h>

src/Layers/xrRenderPC_R3/xrRender_R3.vcxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@
215215
<ClInclude Include="..\xrRenderDX10\dx10BufferUtils.h" />
216216
<ClInclude Include="..\xrRenderDX10\dx10ConstantBuffer.h" />
217217
<ClInclude Include="..\xrRenderDX10\dx10ConstantBuffer_impl.h" />
218+
<ClInclude Include="..\xrRenderDX10\dx10MinMaxSMBlender.h" />
218219
<ClInclude Include="..\xrRenderDX10\dx10R_Backend_Runtime.h" />
219220
<ClInclude Include="..\xrRenderDX10\dx10r_constants_cache.h" />
220221
<ClInclude Include="..\xrRenderDX10\dx10StateUtils.h" />
@@ -343,7 +344,6 @@
343344
<ClInclude Include="blender_light_spot.h" />
344345
<ClInclude Include="blender_luminance.h" />
345346
<ClInclude Include="blender_ssao.h" />
346-
<ClInclude Include="dx10MinMaxSMBlender.h" />
347347
<ClInclude Include="..\xrRender\light_gi.h" />
348348
<ClInclude Include="..\xrRender\Light_Render_Direct.h" />
349349
<ClInclude Include="..\xrRender\light_smapvis.h" />
@@ -370,6 +370,7 @@
370370
<ClCompile Include="..\xrRenderDX10\dx10ConstantBuffer.cpp" />
371371
<ClCompile Include="..\xrRenderDX10\dx10DetailManager_VS.cpp" />
372372
<ClCompile Include="..\xrRenderDX10\dx10HW.cpp" />
373+
<ClCompile Include="..\xrRenderDX10\dx10MinMaxSMBlender.cpp" />
373374
<ClCompile Include="..\xrRenderDX10\dx10ResourceManager_Resources.cpp" />
374375
<ClCompile Include="..\xrRenderDX10\dx10ResourceManager_Scripting.cpp" />
375376
<ClCompile Include="..\xrRenderDX10\dx10r_constants.cpp" />
@@ -505,7 +506,6 @@
505506
<ClCompile Include="blender_light_spot.cpp" />
506507
<ClCompile Include="blender_luminance.cpp" />
507508
<ClCompile Include="blender_ssao.cpp" />
508-
<ClCompile Include="dx10MinMaxSMBlender.cpp" />
509509
<ClCompile Include="..\xrRender\light_GI.cpp" />
510510
<ClCompile Include="..\xrRender\Light_Render_Direct.cpp" />
511511
<ClCompile Include="..\xrRender\Light_Render_Direct_ComputeXFS.cpp" />

0 commit comments

Comments
 (0)