leonardthomas1556
Topic Author
Posts: 1
Joined: 04 Oct 2022, 06:47

LoadXXX methods

04 Oct 2022, 06:50

Hello,

I have started to implement the Managed version of NoesisGUI into my C# game engine and was wandering: What is the proper way to use the providers?

Is there a class, in which there is a static method to instantiate them, or do I have to make a class that inherits them? If so, what is the default implementation of the LoadXXX methods?

Thanks in advance.
 
User avatar
sfernandez
Site Admin
Posts: 2664
Joined: 22 Dec 2011, 19:20

Re: LoadXXX methods

04 Oct 2022, 11:15

Hi,

You have to inherit from the base classes and set an instance of your providers before loading any xaml:
GUI.SetXamlProvider(...);
GUI.SetFontProvider(...);
GUI.SetTextureProvider(...);
You can use our embedded or local providers as reference to implement your own: https://github.com/Noesis/Managed/tree/ ... e/Src/Core
Basically is returning a Stream with the resource contents (xaml, font, texture) that Noesis wants to load.

Who is online

Users browsing this forum: No registered users and 2 guests