Subversion Repository Public Repository

Divide-Framework

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

Diff Revisions 336 vs 337 for /trunk/Source Code/Rendering/PostFX/Headers/PreRenderOperator.h

Diff revisions: vs.
  @@ -5,7 +5,7 @@
5 5
6 6 namespace Divide {
7 7
8 - enum RenderStage;
8 + enum RenderStage : I32;
9 9 class Quad3D;
10 10 class Texture;
11 11 class Framebuffer;
  @@ -16,50 +16,50 @@
16 16 class PreRenderOperator {
17 17
18 18 protected:
19 - enum PostFXRenderStage {
20 - FXAA_STAGE = toBit(1),
21 - SSAO_STAGE = toBit(2),
22 - DOF_STAGE = toBit(3),
23 - BLOOM_STAGE = toBit(4),
24 - LIGHT_SHAFT_STAGE = toBit(5)
25 - };
19 + enum PostFXRenderStage {
20 + FXAA_STAGE = toBit(1),
21 + SSAO_STAGE = toBit(2),
22 + DOF_STAGE = toBit(3),
23 + BLOOM_STAGE = toBit(4),
24 + LIGHT_SHAFT_STAGE = toBit(5)
25 + };
26 26
27 27 public:
28 - ///The RenderStage is used to inform the GFXDevice of what we are currently doing to set up apropriate states
29 - ///The target is the full screen quad to which we want to apply our operation to generate the result
30 - PreRenderOperator(PostFXRenderStage stage,
28 + ///The RenderStage is used to inform the GFXDevice of what we are currently doing to set up apropriate states
29 + ///The target is the full screen quad to which we want to apply our operation to generate the result
30 + PreRenderOperator(PostFXRenderStage stage,
31 31 const vec2<U16>& resolution,
32 32 SamplerDescriptor* const sampler) : _internalSampler(sampler),
33 - _stage(stage),
34 - _resolution(resolution),
35 - _genericFlag(false)
36 - {
37 - }
38 -
39 - virtual ~PreRenderOperator()
40 - {
41 - }
42 -
43 - virtual void operation() = 0;
44 - virtual void reshape(I32 width, I32 height) = 0;
45 - ///Reference to state
46 - inline void enabled(bool state) {_enabled = state;}
47 - inline bool enabled() const {return _enabled; }
48 - inline void genericFlag(bool state) {_genericFlag = state;}
49 - inline bool genericFlag() const {return _genericFlag;}
50 - inline void addInputFB(Framebuffer* const input) {_inputFB.push_back(input);}
33 + _stage(stage),
34 + _resolution(resolution),
35 + _genericFlag(false)
36 + {
37 + }
38 +
39 + virtual ~PreRenderOperator()
40 + {
41 + }
42 +
43 + virtual void operation() = 0;
44 + virtual void reshape(I32 width, I32 height) = 0;
45 + ///Reference to state
46 + inline void enabled(bool state) {_enabled = state;}
47 + inline bool enabled() const {return _enabled; }
48 + inline void genericFlag(bool state) {_genericFlag = state;}
49 + inline bool genericFlag() const {return _genericFlag;}
50 + inline void addInputFB(Framebuffer* const input) {_inputFB.push_back(input);}
51 51
52 52 protected:
53 53
54 - bool _enabled;
55 - ///Used to represent anything (for example: HDR on/off for bloom)
56 - bool _genericFlag;
57 - vectorImpl<Framebuffer* > _inputFB;
58 - vec2<U16> _resolution;
59 - SamplerDescriptor* _internalSampler;
54 + bool _enabled;
55 + ///Used to represent anything (for example: HDR on/off for bloom)
56 + bool _genericFlag;
57 + vectorImpl<Framebuffer* > _inputFB;
58 + vec2<U16> _resolution;
59 + SamplerDescriptor* _internalSampler;
60 60
61 61 private:
62 - PostFXRenderStage _stage;
62 + PostFXRenderStage _stage;
63 63 };
64 64
65 65 }; //namespace Divide