Rendering view to texture storage interface.
Definition IRenderViewToTexture.h:26
virtual void end(IRenderer &renderer)=0
Finishes drawing operation started with begin method.
virtual bool begin(IRenderer &renderer, glm::ivec2 surfaceSize, IRenderViewToTexture::InvalidArea &invalidArea)=0
Instructs the renderer to begin drawing to the surface (framebuffer) stored in IRenderViewToTexture.
virtual void draw(IRenderer &renderer)=0
Draws contents of the surface.
No redraw.
Definition IRenderViewToTexture.h:36
Full redraw.
Definition IRenderViewToTexture.h:41
Defines areas to invalidate (redraw).
Definition IRenderViewToTexture.h:32
AStaticVector< ARect< int >, ARenderContext::Rectangles::capacity() - 1 > Rectangles
Specific areas redraw.
Definition IRenderViewToTexture.h:46
void addRectangle(ARect< int > rhs)
Adds rectangle as an invalid area. If needed, switches to full redraw.
Definition IRenderViewToTexture.cpp:41