Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::render::PathAtlas Class Reference

Path atlas — caches rasterized vector paths (e.g., complex SVG icons). More...

#include <texture_atlas.hpp>

Classes

struct  Entry

Public Member Functions

 PathAtlas (int size=2048)
bool allocate (uint64_t path_hash, int w, int h, AtlasPacker::Region &out)
void mark_used (uint64_t key, uint64_t frame)
size_t evict_stale (uint64_t current_frame, uint64_t max_age=600)
size_t entry_count () const
int width () const
 Read-only introspection for the inspector's atlas viewer.
int height () const
float occupancy () const

Detailed Description

Path atlas — caches rasterized vector paths (e.g., complex SVG icons).

Paths are keyed by a hash of path data + transform.

Constructor & Destructor Documentation

◆ PathAtlas()

pulp::render::PathAtlas::PathAtlas ( int size = 2048)
inlineexplicit

Member Function Documentation

◆ 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: