Rendering view to texture storage interface.
More...
|
static void | enableForView (IRenderer &renderer, AView &view) |
|
static void | disableForView (AView &view) |
|
static bool | isEnabledForView (AView &view) |
|
◆ begin()
Instructs the renderer to begin drawing to the surface (framebuffer) stored in IRenderViewToTexture.
- Parameters
-
renderer | renderer to draw with. IRenderViewToTexture is expected to be associated with the renderer it's created with and normally this parameter is used to assert check the used renderer is the same. |
surfaceSize | framebuffer size. Adjusts this value to achieve supersampling. Resizes the surface if mismatched with surfaceSize. |
invalidArea | invalid areas to update. Should not be empty. Can be changed to InvalidArea::Full{} by implementation and caller is expected to react accordingly. |
- Returns
- true on success, false otherwise
If needed, implementation may adjust renderer's transform matrix.
◆ draw()
virtual void IRenderViewToTexture::draw |
( |
IRenderer & |
renderer | ) |
|
|
pure virtual |
Draws contents of the surface.
- Parameters
-
renderer | renderer to draw with. IRenderViewToTexture is expected to be associated with the renderer it's created with and normally this parameter is used to assert check the used renderer is the same. |
◆ end()
virtual void IRenderViewToTexture::end |
( |
IRenderer & |
renderer | ) |
|
|
pure virtual |
Finishes drawing operation started with begin method.
- Parameters
-
renderer | renderer to draw with. IRenderViewToTexture is expected to be associated with the renderer it's created with and normally this parameter is used to assert check the used renderer is the same. |
The caller is obligated to recover renderer's state prior to begin method call.
#include <AUI/Render/IRenderViewToTexture.h>
The documentation for this class was generated from the following files: