Path atlas — caches rasterized vector paths (e.g., complex SVG icons).
More...
#include <texture_atlas.hpp>
Path atlas — caches rasterized vector paths (e.g., complex SVG icons).
Paths are keyed by a hash of path data + transform.
◆ PathAtlas()
| pulp::render::PathAtlas::PathAtlas |
( |
int | size = 2048 | ) |
|
|
inlineexplicit |
◆ allocate()
| bool pulp::render::PathAtlas::allocate |
( |
uint64_t | path_hash, |
|
|
int | w, |
|
|
int | h, |
|
|
AtlasPacker::Region & | out ) |
◆ entry_count()
| size_t pulp::render::PathAtlas::entry_count |
( |
| ) |
const |
|
inline |
◆ evict_stale()
| size_t pulp::render::PathAtlas::evict_stale |
( |
uint64_t | current_frame, |
|
|
uint64_t | max_age = 600 ) |
◆ height()
| int pulp::render::PathAtlas::height |
( |
| ) |
const |
|
inline |
◆ mark_used()
| void pulp::render::PathAtlas::mark_used |
( |
uint64_t | key, |
|
|
uint64_t | frame ) |
◆ occupancy()
| float pulp::render::PathAtlas::occupancy |
( |
| ) |
const |
|
inline |
◆ width()
| int pulp::render::PathAtlas::width |
( |
| ) |
const |
|
inline |
Read-only introspection for the inspector's atlas viewer.
The documentation for this class was generated from the following file: