5 #ifndef BALL_VIEW_RENDERING_RENDERERS_BUFFEREDRENDERER_H
6 #define BALL_VIEW_RENDERING_RENDERERS_BUFFEREDRENDERER_H
8 #ifndef BALL_VIEW_RENDERING_RENDERERS_RENDERER_H
12 #ifndef BALL_VIEW_RENDERING_RENDERTARGET_H
47 bufferFormat = format;
64 prepareBufferedRendering(stage);
69 if (buffer->getFormat() != bufferFormat)
74 renderToBufferImpl( buffer );
80 virtual bool supports(
const PixelFormat &format)
const = 0;
112 virtual void formatUpdated() = 0;
116 virtual void prepareBufferedRendering(
const Stage& stage) = 0;
139 #endif // BALL_VIEW_RENDERING_BUFFEREDRENDERER_H
void renderToBuffer(RenderTarget *renderTarget, const Stage &stage)
boost::shared_ptr< FrameBuffer > FrameBufferPtr
virtual void setStride(Size stride)
const FrameBufferFormat & getFrameBufferFormat() const
virtual void releaseBuffer(FrameBufferPtr buffer)=0
bool setFrameBufferFormat(const FrameBufferFormat &format)
T max(const T &a, const T &b)
virtual void setOffset(Size offset)
virtual FrameBufferPtr getBuffer()=0
T min(const T &a, const T &b)