IResourceSystem
I'm looking at some older code and I find this line but it says there is no IResourceSystem:
What would be the new way to do this?
Code: Select all
Noesis::Core::Ptr<Noesis::Resource::ResourceProvider> provider = *new Noesis::Resource::LocalResourceProvider(path.c_str());
// errors on this line
NsGetSystem<Noesis::Resource::IResourceSystem>()->AddProvider(provider.GetPtr());
What would be the new way to do this?
Re: IResourceSystem
Hi!
In noesisGUI v1.2 we have simplified our API. Now all the integrating functionality is inside the NoesisGUI.h file. The functions you are looking for are:
Also, in v1.2, our API is exposed in a single file (that you should use as a precompiled header) inside a single namespace:
Including that way, your function would be Noesis::GUI::AddResourceProvider
All this information is detailed in our Integration Tutorial (source code included).
Cheers.
In noesisGUI v1.2 we have simplified our API. Now all the integrating functionality is inside the NoesisGUI.h file. The functions you are looking for are:
Code: Select all
/// Adds a local directory to the list of providers used to load resources
NS_GUI_CORE_API void AddResourceProvider(const NsChar* rootFolder);
/// Adds a custom provider to the list of providers used to load resources
NS_GUI_CORE_API void AddResourceProvider(Resource::IResourceProvider* provider);
Code: Select all
#include <NoesisGUI.h>
using namespace Noesis;
All this information is detailed in our Integration Tutorial (source code included).
Cheers.
Who is online
Users browsing this forum: No registered users and 6 guests