Texture is abstract
aienabled opened this issue · 5 comments
Hi guys,
there is a problem with 3.1.1 (or maybe even 3.1.0 as I've not tried it):
The Texture class is abstract:
I guess the code above should be changed to new NativeTexture(...)
.
Regards!
And there is another issue:
System.EntryPointNotFoundException: Unable to find an entry point named 'Noesis_WrapD3D11Texture' in DLL 'Noesis'.
at Noesis.Texture.Noesis_WrapD3D11Texture(IntPtr nativePointer, Int32 width, Int32 height, Int32 numMipMaps, Boolean isInverted)
Apparently, there is only Noesis_WrapTexture
function available now in Noesis.dll
(I'm using runtimes\win-x64\native\Noesis.dll
as usual).
Regards!
That TextureExtend.cs
file should have been removed from the repository when upgrading to 3.1.0, it was replaced by Noesis/Core/Src/Core/Texture.cs
I'm going to fix it now, thanks for reporting it.
I see. Hmm...so how do I wrap a D3D11 texture to NoesisGUI texture object now?
Wrap code is moved to specific RenderDevice implementation:
RenderDeviceD3D11.WrapTexture()
RenderDeviceGL.WrapTexture()
...
Thank you, Sergio! I was not aware of this change by reading the release notes. It works now.
Regards!