Canvas.h file
Namespaces
Classes
- class Jazz2::UI::Canvas
- Canvas.
- struct Jazz2::UI::Canvas::GlyphBatch::RetainedChunk
- Batch of a record with its instances in memory kept from frame to frame, see CANVAS_RETAINED_DRAWS.
- struct Jazz2::UI::Canvas::StringMemo::Arguments
- struct Jazz2::UI::Canvas::StringMemo::Part
- Glyphs of the string in one record: a run of them from First on.
Defines
- #define CANVAS_RETAINED_DRAWS
- Whether a canvas keeps what it drew for the next frame, see Jazz2::
UI:: Canvas.
Define documentation
#define CANVAS_RETAINED_DRAWS
Whether a canvas keeps what it drew for the next frame, see Jazz2::
A textured rectangle drawn with the same arguments as in the previous frame reuses the command of that frame, a string drawn again leaves its glyphs in the batch of its record. Anything that changed is drawn as before. On the Nintendo 64 it took the HUD from 1.6 to 0.9 ms a frame.
Needs a backend that reads the uniform memory of a command in place, the others copy it on every commit.