SFML community forums
Bindings - other languages => DotNet => Topic started by: SirusDoma on May 10, 2015, 06:37:55 pm
-
Hello i am looking for 2D Game Library with C# language and i found SFML.
I haven't give a try to this library, i have something to ask before decide to use SFML.NET
first, based what i read at download page:
SFML.Net is the official binding of SFML for the .Net language family (C#, VB.Net, C++/CLI, etc.). It is built on top of the C binding, CSFML, to ensure maximum compatibility across platforms (i.e. it works with Mono)
I see SFML.NET is able to run with Mono and cross platforms but i only see .dll files under libs folder which, i think its.. only compatible at windows?
and do i need put all csfml dll files beside my executable in order to make my game run properly? is there a way to embed them or.. a SFML .NET port that fully written in C# with OpenTK?
sorry if the questions sounds nonsense / newbie
but, thanks!
-
I see SFML.NET is able to run with Mono and cross platforms but i only see .dll files under libs folder which, i think its.. only compatible at windows?
SFML.Net SDK only ships with windows binaries (dlls). The actual C# dlls are cross platform (can be ran on mono without recompiling). However if you want to use SFML.Net with mono on linux you will need to download and install CSFML separately for those platforms.
and do i need put all csfml dll files beside my executable in order to make my game run properly?
Yes, same as any of dlls - they must be in a location where the OS can find them.
is there a way to embed them
Sure you can embed them, but then you need to extract them at runtime.
or a SFML .NET port that fully written in C# with OpenTK?
Now that would kinda defeat the purpose of a binding now wouldn't it?
-
Thank you for answer!
It make things clear, one question, regarding your statement
and do i need put all csfml dll files beside my executable in order to make my game run properly?
Yes, same as any of dlls - they must be in a location where the OS can find them.
In Windows platform, can i just put csfml dll files in C:\Windows\System32\ ?
-
In Windows platform, can i just put csfml dll files in C:\Windows\System32\ ?
Of course you can, nothing is stopping you.... but that is just a very bad idea and you should never do that.
-
A better way would be to put the DLLs in another directory and specify this location in the PATH environment variable.