DirectX example

Jul 16, 2015 at 7:45 PM
Hi,

really nice project,

I'm thinking about porting my current game engine to csharp native. But from the example I'm seeing I don't really see how to interact with native library.

I'm using sharpDX at the moment but if I'm using your tool I should be using directX directly I guess?

Anyway I hope I was clear enough.
Coordinator
Jul 16, 2015 at 9:32 PM
you need to have a look at

http://babylon.codeplex.com/

review file Gl.cs and GLRenderingContextAdapter.cs

besically you need to use DllImport attribute to tell c# native to generate function with __dllimport attribute for "c" code
Jul 19, 2015 at 4:46 PM
Ok I4m not too familliar with DllImport but I'll lok into it. I'll share a sample when I'm done