fantasto1949
Topic Author
Posts: 1
Joined: 06 Feb 2023, 21:36

Setting up custom providers with C++

13 May 2023, 03:42

Hi :)

I'm trying to implement Noesis into my OpenGL/C++ project on Windows/Visual Studio and looked through the examples how to integrate it. Sadly the part of setting up the providers is skipped.
I have the vague idea that I need to make my own classes, like e.g.: class MyXamlProvider : public Noesis::XamlProvider
And then override all the virtual functions to return what's needed.
But I have to admit that I don't really know how to implement those functions, at least I don't feel confident about it and I don't want to do something wrong.
Is there any chance to provide some examples on how to implement those classes (Providers & Stream)?
 
User avatar
sfernandez
Site Admin
Posts: 2997
Joined: 22 Dec 2011, 19:20

Re: Setting up custom providers with C++

15 May 2023, 11:24

When you download our Native SDK (C++), it comes with source code for all our application framework, which includes implementations of Providers in Src/Packages/App/Providers:
  • Local providers: access resources stored in the file system
  • Embedded providers: access resources compiled into the executable as a byte stream in a header
The Stream class is just a wrapper over a buffer that allows us to read bytes from it.

Hope this helps.
 
User avatar
jsantos
Site Admin
Posts: 3923
Joined: 20 Jan 2012, 17:18
Contact:

Re: Setting up custom providers with C++

16 May 2023, 14:47

What example are you using? All our examples (with the exception of IntegrationGLUT) use the provider implementations mentioned above by Sergio.

Who is online

Users browsing this forum: Google [Bot] and 3 guests