Graphics drawing queue for batch rendering using a Renderer.
More...
#include <donut/graphics/RenderPass.hpp>
Graphics drawing queue for batch rendering using a Renderer.
- Examples
- example_game.cpp, and example_rectangle.cpp.
◆ RenderPass() [1/2]
donut::graphics::RenderPass::RenderPass |
( |
| ) |
|
|
defaultnoexcept |
◆ RenderPass() [2/2]
donut::graphics::RenderPass::RenderPass |
( |
std::span< std::byte > |
initialMemory | ) |
|
|
inlinenoexcept |
Construct an empty RenderPass with some initial storage pre-allocated.
- Parameters
-
initialMemory | non-owning view over a contiguous chunk of available memory that the RenderPass may use as temporary storage. |
- Warning
- The pointed-to memory must remain valid until the RenderPass has been destroyed.
◆ draw() [1/9]
◆ draw() [2/9]
Enqueue a QuadInstance to be drawn when the render pass is rendered.
- Returns
*this
, for chaining.
- Exceptions
-
std::bad_alloc | on allocation failure. |
- See also
- QuadInstance
◆ draw() [3/9]
Enqueue a TextureInstance to be drawn when the render pass is rendered.
- Returns
*this
, for chaining.
- Exceptions
-
std::bad_alloc | on allocation failure. |
- See also
- TextureInstance
◆ draw() [4/9]
Enqueue a RectangleInstance to be drawn when the render pass is rendered.
- Returns
*this
, for chaining.
- Exceptions
-
std::bad_alloc | on allocation failure. |
- See also
- RectangleInstance
◆ draw() [5/9]
Enqueue a SpriteInstance to be drawn when the render pass is rendered.
- Returns
*this
, for chaining.
- Exceptions
-
std::bad_alloc | on allocation failure. |
- See also
- SpriteInstance
◆ draw() [6/9]
Enqueue a TextInstance to be drawn when the render pass is rendered.
- Returns
*this
, for chaining.
- Exceptions
-
std::bad_alloc | on allocation failure. |
- See also
- TextInstance
◆ draw() [7/9]
Enqueue a TextCopyInstance to be drawn when the render pass is rendered.
- Returns
*this
, for chaining.
- Exceptions
-
std::bad_alloc | on allocation failure. |
- See also
- TextCopyInstance
◆ draw() [8/9]
◆ draw() [9/9]
The documentation for this class was generated from the following file: