Tmr::SurfaceDescriptor has some bit-fields currently unused to specify a topomap index ; the SurfaceFactory forces that index to 0, with the idea that the public interface might be expanded in the future.
How might this be implemented ?
- provide a base class of a general 'topology cache' container to manage multiple topology maps
(using the TopologyMap::Traits)
- leave the implementation of a cache to the client-code (as is currently the case)
-> this requires exposing some way of setting up the topo map index in the bitfield
Tmr::SurfaceDescriptor has some bit-fields currently unused to specify a topomap index ; the SurfaceFactory forces that index to 0, with the idea that the public interface might be expanded in the future.
How might this be implemented ?
(using the TopologyMap::Traits)
-> this requires exposing some way of setting up the topo map index in the bitfield