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/Headers/PreRenderOperator.h

Diff revisions: vs.
  @@ -7,14 +7,23 @@
7 7 enum RenderStage;
8 8 class Quad3D;
9 9 class FrameBufferObject;
10 + class SamplerDescriptor;
10 11 ///It's called a prerender operator because it operates on the buffer before "rendering" to the screen
11 12 ///Technically, it's a post render operation
12 13 class PreRenderOperator {
13 14 public:
14 15 ///The RenderStage is used to inform the GFXDevice of what we are currently doing to set up apropriate states
15 16 ///The target is the full screen quad to which we want to apply our operation to generate the result
16 - PreRenderOperator(RenderStage stage, Quad3D* target, const vec2<U16>& resolution) : _stage(stage), _renderQuad(target), _resolution(resolution) {};
17 - virtual ~PreRenderOperator() {};
17 + PreRenderOperator(RenderStage stage, Quad3D* target,
18 + const vec2<U16>& resolution, SamplerDescriptor* const sampler) : _internalSampler(sampler),
19 + _stage(stage),
20 + _renderQuad(target),
21 + _resolution(resolution)
22 + {
23 + }
24 + virtual ~PreRenderOperator()
25 + {
26 + }
18 27
19 28 virtual void operation() = 0;
20 29 virtual void reshape(I32 width, I32 height) = 0;
  @@ -22,7 +31,7 @@
22 31 inline void setEnabled(bool& state) {_enabled = state;}
23 32 inline bool getEnabled() {return _enabled; }
24 33
25 - inline void addInputFBO(FrameBufferObject* input) {_inputFBO.push_back(input);}
34 + inline void addInputFBO(FrameBufferObject* const input) {_inputFBO.push_back(input);}
26 35
27 36 protected:
28 37 ///Target to render to;
  @@ -30,6 +39,7 @@
30 39 bool _enabled;
31 40 vectorImpl<FrameBufferObject* > _inputFBO;
32 41 vec2<U16> _resolution;
42 + SamplerDescriptor* _internalSampler;
33 43
34 44 private:
35 45 RenderStage _stage;