29 lines
813 B
C
29 lines
813 B
C
|
#pragma once
|
||
|
/** \file posteffectblurrenderer.h
|
||
|
* \brief post effect component
|
||
|
|
||
|
* Copyright (c) 2011,WebJet Business Division,CYOU
|
||
|
* All rights reserved.
|
||
|
* Date Ver Author Comment
|
||
|
* 2011/12/7 1.0 Qi Song
|
||
|
*/
|
||
|
#include "graphicsystem/Renderable/QuadRenderer.h"
|
||
|
#include "graphicsystem/base/RenderToTexture.h"
|
||
|
|
||
|
namespace Addons
|
||
|
{
|
||
|
class PostEffectBlurRenderer : public Graphic::QuadRenderer
|
||
|
{
|
||
|
__DeclareSubClass(PostEffectBlurRenderer,Graphic::QuadRenderer)
|
||
|
|
||
|
public:
|
||
|
PostEffectBlurRenderer();
|
||
|
virtual ~PostEffectBlurRenderer();
|
||
|
|
||
|
virtual void Setup();
|
||
|
virtual void RenderObj(const Ptr<Graphic::Renderable>& renderable, bool surface = false,const Ptr<Graphic::Material>& customizedMat = 0);
|
||
|
|
||
|
Util::Array<Ptr<Graphic::RenderToTexture>> m_blurVertAndHori;
|
||
|
bool m_bRTBinded;
|
||
|
};
|
||
|
}
|