Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 167 vs 168 for /trunk/Source Code/Rendering/PostFX/PreRenderStageBuilder.cpp

Diff revisions: vs.
  @@ -1,12 +1,19 @@
1 1 #include "Headers/PreRenderStage.h"
2 2 #include "Headers/PreRenderStageBuilder.h"
3 3
4 + #include "Hardware/Video/Headers/RenderAPIEnums.h"
5 + #include "Hardware/Video/Textures/Headers/TextureDescriptor.h"
6 +
4 7 PreRenderStageBuilder::PreRenderStageBuilder(){
5 8 _renderStage = New PreRenderStage();
9 + _screenSampler = New SamplerDescriptor;
10 + _screenSampler->setWrapMode(TEXTURE_CLAMP_TO_EDGE);
11 + _screenSampler->toggleMipMaps(false); //it's a flat texture on a full screen quad. really?
6 12 }
7 13
8 14 PreRenderStageBuilder::~PreRenderStageBuilder(){
9 15 SAFE_DELETE(_renderStage);
16 + SAFE_DELETE(_screenSampler);
10 17 }
11 18
12 19 PreRenderOperator* PreRenderStageBuilder::addToStage(PreRenderOperator* op, bool& state){