Function getObjects

Synopsis

#include <Source/Falcor/Utils/Scripting/Scripting.h>

template <typename T>
std::vector< ObjectDesc< T > > getObjects()

Description

No description yet.

Source

Lines 57-73 in Source/Falcor/Utils/Scripting/Scripting.h.

template<typename T>
std::vector<ObjectDesc<T>> getObjects()
{
    std::vector<ObjectDesc<T>> v;
    for (const auto& l : mLocals)
    {
        try
        {
            if(!l.second.is_none())
            {
                v.push_back(ObjectDesc<T>(l.first.cast<std::string>(), l.second.cast<T>()));
            }
        }
        catch (const std::exception&) {}
    }
    return v;
}





Add Discussion as Guest

Log in to DocsForge