getBundles

Defined in omni/graph/core/bundle/IBundleFactory1.h

bool getBundles(omni::graph::core::GraphContextObj const &contextObj, omni::graph::core::ConstBundleHandle const *const bundleHandles, size_t bundleCount, omni::core::ObjectPtr<omni::graph::core::IConstBundle2> *const bundles) noexcept

Acquire IConstBundle2 interface instances from constant bundle handles. This overloaded function retrieves read-only interfaces for constant bundles.

Parameters
  • contextObj – The graph context to which the bundles belong.

  • bundleHandles – Array of constant bundle handles.

  • bundleCount – Number of elements in the bundleHandles array.

  • bundles – Output array of smart pointers managing IConstBundle2 instances.

Returns

true if interfaces were successfully acquired for all bundles, false otherwise.