Expand description
Rendering buffer — row-oriented access to pixel data.
Port of agg_rendering_buffer.h — provides two strategies for accessing
rows in a rectangular pixel buffer:
RowAccessor: computes row pointers on demand (multiplication per access). Cheap to create; good default.RowPtrCache: pre-computes and caches row pointers in aVec. Faster per-row access; requires allocation.
Both support positive strides (top-down) and negative strides (bottom-up,
e.g. BMP format). The RenderingBuffer type alias defaults to RowAccessor.
Structs§
- RowAccessor
- Row accessor that computes row pointers via base + y * stride.
- RowData
- Row data returned by
row()— a slice range and pointer into a row. - RowPtr
Cache - Row pointer cache that pre-computes pointers for O(1) row access.
Traits§
- Rendering
Buffer Access - Common interface for rendering buffer access (used by
copy_from).
Type Aliases§
- Rendering
Buffer - Default rendering buffer type (matches C++
typedef row_accessor<int8u> rendering_buffer).