MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ read_placement()

MAYAFLUX_API glm::mat4 MayaFlux::Nexus::read_placement ( const std::shared_ptr< Buffers::VKBuffer > &  buf)

Where a buffer is drawn: the geometry transform of its primary render processor.

The transform source if it has one, else the static transform, else identity. Takes stored coordinates to drawn coordinates.

Parameters
bufBuffer to read.

Definition at line 303 of file Survey.cpp.

304{
305 const auto proc = buf->get_render_processor();
306 if (!proc) {
307 return glm::mat4(1.0F);
308 }
309 if (const auto& source = proc->get_geometry_transform_source()) {
310 return source();
311 }
312 if (const auto& fixed = proc->get_geometry_transform()) {
313 return *fixed;
314 }
315 return glm::mat4(1.0F);
316}

References read_placement().

Referenced by MayaFlux::Nexus::Hull::contains(), MayaFlux::Nexus::Hull::reach(), and read_placement().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: