Skip to content

raisin::FoliageTextureAtlasContext ​

class · #include <rayrai/FoliageTextureAtlas.hpp>

Track a current GL context for deferred foliage-atlas deletion.

RayraiWindow tracks its own context. Hosts can create an additional scope after making a context current and initializing glbinding, for standalone atlas builds or copies that may outlive the viewer. Track each surviving context that must drain deferred releases and destroy its scope before destroying the context. Shared contexts use the same queue.

Constructors & destructor ​

FoliageTextureAtlasContext ​

cpp
FoliageTextureAtlasContext()

Join the current context's atlas deletion queue.

cpp
FoliageTextureAtlasContext(const FoliageTextureAtlasContext &) = delete

Public member functions ​

operator= ​

cpp
FoliageTextureAtlasContext &operator=(const FoliageTextureAtlasContext &) = delete

flush ​

cpp
void flush()

Delete released atlases while a context from this share group is current.

RaiSim — physics for robotics and AI.