Noesis android native
Hello! I'm testing noesis and I used this integration as an example: https://github.com/Noesis/Tutorials/blo ... c/Main.cpp
I'm using android native, everything ran perfectly but there was a "blue" screen, Hellow World or things like that didn't appear, I'm using Opengl ES 3, do I need to do something specific for noesis to work on native Android c++?
I'm using android native, everything ran perfectly but there was a "blue" screen, Hellow World or things like that didn't appear, I'm using Opengl ES 3, do I need to do something specific for noesis to work on native Android c++?
-
sfernandez
Site Admin
- Posts: 2991
- Joined:
Re: Noesis android native
If you build and install the samples included in our Native SDK, do they render as expected?
Re: Noesis android native
I put an example called "Hellow World" extension .apk and it worked, maybe my problem is where to put the Theme folder? I put it in the assets folder of android studio, maybe I need to do a different configuration?
Re: Noesis android native
You need to install a provider to get resources like the default theme. I recommend studying Integration and IntegrationGLUT examples. They are part of the SDK. All our examples comes with source code, you can also debug and analyze what we are doing.
By default, we use embedded resources, but you can install your own provider to get resources for the apk.
By default, we use embedded resources, but you can install your own provider to get resources for the apk.
Re: Noesis android native
I'll try to make this "provider" as soon as I can if it works I'll let you know, thanks for your attention!
Re: Noesis android native
Thank you, please let us know
Re: Noesis android native
well unfortunately I didn't have success, it's 100% functional on windows but on native android I'm having a crash in this "CreateTexture" function
I'm using my own provider:
Noesis::Ptr<Noesis::XamlProvider> xamlProvider = *new MyXamlProvider("noesis/UI/");
Noesis::Ptr<Noesis::FontProvider> fontProvider = *new MyLocalFontProvider("noesis/UI/");
Noesis::Ptr<Noesis::TextureProvider> textureProvider = *new MyTextureProvider("noesis/UI/");
NoesisApp::SetThemeProviders(xamlProvider, fontProvider, textureProvider);
unfortunately I don't know what it could be because it seems that "CreateTexture" belongs to noesis.so and it doesn't seem to be in debug so I can see the function
Note: Works perfectly on Windows
I'm using my own provider:
Noesis::Ptr<Noesis::XamlProvider> xamlProvider = *new MyXamlProvider("noesis/UI/");
Noesis::Ptr<Noesis::FontProvider> fontProvider = *new MyLocalFontProvider("noesis/UI/");
Noesis::Ptr<Noesis::TextureProvider> textureProvider = *new MyTextureProvider("noesis/UI/");
NoesisApp::SetThemeProviders(xamlProvider, fontProvider, textureProvider);
unfortunately I don't know what it could be because it seems that "CreateTexture" belongs to noesis.so and it doesn't seem to be in debug so I can see the function
Note: Works perfectly on Windows
Re: Noesis android native
CreateTexture is part of NoesisApp. We provide source code for that library. For Android, that function is implemented in GLRenderDevice.cpp. Make sure you compile it in Debug.
Re: Noesis android native
I managed to make it work, I compiled the lib through a linux and everything worked, before I was compiling with windows, thanks!
Re: Noesis android native
Great news! Thank you
Who is online
Users browsing this forum: Ahrefs [Bot] and 61 guests