Responible for rendering a single frame, status bar and dispatching painting to EditorController.
More...
#include <FrameRenderer.h>
Responible for rendering a single frame, status bar and dispatching painting to EditorController.
Handles drawing the frame canvas, status bar, and forwarding painting operations to the EditorController through a CanvasContext.
- See also
- EditorController
◆ FrameRenderer()
Creates a renderer for a single frame view.
- Parameters
-
| frame | Frame to render. |
| index | Timeline index of the frame. |
| manager | Tool manager used for painting and UI state. |
| player | Animation player attached to the project. |
| editorController | Shared editor controller used for painting. |
| settings | Application settings used for rendering behavior. |
◆ GetCtx()
Returns the mutable canvas context used by this renderer.
- Returns
- Pointer to the canvas context.
◆ InitPixels()
| void FuncDoodle::FrameRenderer::InitPixels |
( |
| ) |
|
Initializes pixel-related state before rendering.
◆ RenderFrame()
| void FuncDoodle::FrameRenderer::RenderFrame |
( |
| ) |
|
Renders the complete frame view.
◆ RenderFramePixels()
| void FuncDoodle::FrameRenderer::RenderFramePixels |
( |
int | startX, |
|
|
int | startY, |
|
|
ImDrawList * | drawList, |
|
|
bool | usePrevPxScale = true, |
|
|
bool | renderPreview = true ) const |
Draws frame pixels into a draw list.
- Parameters
-
| startX | Canvas start X coordinate. |
| startY | Canvas start Y coordinate. |
| drawList | Draw list receiving pixel primitives. |
| usePrevPxScale | Whether to reuse cached pixel scale values. |
| renderPreview | Whether to render previous-frame preview pixels. |
◆ RenderStatusBar()
| void FuncDoodle::FrameRenderer::RenderStatusBar |
( |
| ) |
const |
Renders status information associated with the frame view.
◆ SetUndoByStroke()
| void FuncDoodle::FrameRenderer::SetUndoByStroke |
( |
bool | undoByStroke | ) |
|
|
inline |
Forwards undo-by-stroke preference to the editor controller.
- Parameters
-
| undoByStroke | Whether strokes should be grouped into one undo step. |
◆ m_Ctx
◆ m_EditorController
The documentation for this class was generated from the following files: