Page 1 of 1

Native sdk with opengl can't use NoesisGUIExtensions?

Posted: 29 Nov 2023, 11:57
by dengfan
Unknown property type 'noesis:RichText' (NoesisGUIExtensions.RichText)
richtext 2023-11-29 185506.png
How to fix it?

Re: Native sdk with opengl can't use NoesisGUIExtensions?

Posted: 30 Nov 2023, 13:46
by jsantos
IntegrationGLUT is very minimalist and it is not registering any extension. I recommend having a look at the Integration example. It is registering app extensions this way:
// Register app components. We need a few in this example, like Display and RenderContext
NoesisApp::Launcher::RegisterAppComponents();

Re: Native sdk with opengl can't use NoesisGUIExtensions?

Posted: 30 Nov 2023, 14:08
by dengfan
I was right, NOESIS + XAML is so powerful.
屏幕截图 2023-11-30 205950.png
2 more questions,
1. In BBCode, how could c++ code to handle the [url] click event?
2. Is it also possible to have textures directly displayed through [img]?

Re: Native sdk with opengl can't use NoesisGUIExtensions?

Posted: 30 Nov 2023, 14:16
by jsantos
1. URL events are redirected to the callback set in Noesis::GUI::SetOpenUrlCallback (in IntegrationAPI.h)

2. Yes, the texture will be requested to the installed texture provider.