SFML community forums

Bindings - other languages => DotNet => Topic started by: nikokin on August 01, 2012, 07:11:53 pm

Title: C# SFML using mono for mac/linux
Post by: nikokin on August 01, 2012, 07:11:53 pm
Has anyone tried this? Right now I have an C#/XNA project that I have been (very slowly) converting to C++/SFML. I am not very good at C++ and I get stuck on alot of pointer / linker errors. So staying with C# will help the development process

I recently listened to a podcast of a interview with Blendo Games developer. He uses C# with the SFML binding, then uses mono to compile for mac/linux.
http://blendogames.com/news/?p=106 (http://blendogames.com/news/?p=106)

I just wanted to know if anyone has tried this, and any experiences/problems.
Title: Re: C# SFML using mono for mac/linux
Post by: Laurent on August 02, 2012, 08:11:35 am
Many developers use SFML.Net with Mono, no major problem has been reported so far. The only difference with Windows is that you'll need a file that maps Windows DLL names to Unix names (csfml-graphics-2.dll -> libcsfml-graphics.so.2). This is because SFML.Net uses CSFML, and the DLL names are hard-coded in the source code. I don't remember how to fill this file and link it to the SFML.Net projects, but if you search here you should find enough information.