Announcement

Collapse
No announcement yet.

Cast VRayPlugin

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Cast VRayPlugin

    Might be a dumb question, but using the C++ API, how do I cast a VRay::Plugin to a more specific plugin?
    something like
    VRay::Plugin some_connection = some_plugin.get_color_a();
    VRay::Plugins::TexBlend blah = (VRay::Plugins::TexBlend) some_connection;

  • #2
    There are plugin_cast<T> and plugin_checked_cast<T> in the sdk:
    VRay::Plugins::TexBlend blah = plugin_cast<VRay::Plugins::TexBlend>(some_connecti on);
    or
    VRay::Plugins::TexBlend blah = plugin_checked_cast<VRay::Plugins::TexBlend>(some_ connection);
    if (blah) ...

    Comment

    Working...
    X