Usage from other dynamic libraries
Is it possible to use noesis from different dynamic libraries than the one which initializes it?
Ofc they will be static linked against noesis, but i am wondering if i can just create elements and use reflection from dll plugins that are loaded afterwards.
Another point of interest would be if this could also work for managed noesis, where the engine loads and initializes noesis and the render device, and then allows usage of noesis from within the mono runtime the engine is already hosting.
Ofc they will be static linked against noesis, but i am wondering if i can just create elements and use reflection from dll plugins that are loaded afterwards.
Another point of interest would be if this could also work for managed noesis, where the engine loads and initializes noesis and the render device, and then allows usage of noesis from within the mono runtime the engine is already hosting.
Re: Usage from other dynamic libraries
Yes, all those scenarios are supported and they should be working fine.
Re: Usage from other dynamic libraries
How would i go about using noesis from c#?
Just import the managed library?
Just import the managed library?
Re: Usage from other dynamic libraries
The C# SDK is a separate download, it provides many samples. It is available in the Downloads section.
Re: Usage from other dynamic libraries
So how exactly would i go about using noesis in my project that gets loaded by an engine implementing a render device alread?
The sdk just seems to contain samples which reference nuget packages. I am unsure what dependencies i need to add to my project.
Do i just add the Noesis.GUI nuget package?
The sdk just seems to contain samples which reference nuget packages. I am unsure what dependencies i need to add to my project.
Do i just add the Noesis.GUI nuget package?
Re: Usage from other dynamic libraries
Yes, you only need Noesis.GUI. MonoGame wrapper is exactly doing that.
Re: Usage from other dynamic libraries
Neat.
Are there any plans to use c# annotations in the future for things like properties and binding?
The current way seems a bit cumbersome with manually calling property changed events.
Might be nice to have as an extra layer of abstraction.
Are there any plans to use c# annotations in the future for things like properties and binding?
The current way seems a bit cumbersome with manually calling property changed events.
Might be nice to have as an extra layer of abstraction.
Re: Usage from other dynamic libraries
By the way, I forgot to say that in C# we are not exposing the abstract class RenderDevice to implement your own device. D3D11 and GL implementations come by default. This is something we are going to change in the future.
yes, this is planned.Neat.
Are there any plans to use c# annotations in the future for things like properties and binding?
The current way seems a bit cumbersome with manually calling property changed events.
Might be nice to have as an extra layer of abstraction.
Yes, latest 3.0 beta is on Nuget. You can download the samples from the sticky thread.Also there doesnt seem to be a NuGet package for 3.0.b yetm does it still work with the old version?
Re: Usage from other dynamic libraries
This is why i asked if it will use the render device already created in the native and loaded engine plugin. I dont care about the device implementation on the managed side since thats loaded by the engines embedded mono runtime.By the way, I forgot to say that in C# we are not exposing the abstract class RenderDevice to implement your own device. D3D11 and GL implementations come by default. This is something we are going to change in the future.
Re: Usage from other dynamic libraries
From the looks of it, this doesnt work since none of the classes defined in c# get picked up.
It seems like there is no way to make it aware of the already existing noesis instance in the loaded Noesis.dll and manually create a reference to that in managed code and invoke the component registration. Calling init from c# again will just crash.
It seems like there is no way to make it aware of the already existing noesis instance in the loaded Noesis.dll and manually create a reference to that in managed code and invoke the component registration. Calling init from c# again will just crash.
Who is online
Users browsing this forum: Ahrefs [Bot], Semrush [Bot] and 4 guests