TGUI.Net

Compiling TGUI.Net

Just open the TGUI.Net.sln file from the build directory with Xamarin Studio and compile it.
The tguinet.dll file will be created in the lib folder.

Using TGUI.Net

We will start by creating an empty project.

Mac OS X - Xamarin Studio - Create empty project

Add tguinet.dll to the references, together with your sfml libraries.

Mac OS X - Xamarin Studio - Edit references Mac OS X - Xamarin Studio - Editing references

Now you should be able to run code that uses TGUI.

Example code Running example code

Mapping dlls to so files

Because SFML.Net is a binding instead of a port, you need to map the CSFML .dll files to corresponding .so files.
Although TGUI.Net is a port and does not require this, it does require opengl which you will have to map.

So next to your executable you will need the following three files (with similar contents) in order to run the executable.
If you create these files with TextEdit, then make sure to save these config files in plain text format and uncheck the "If no extention is provided, use .txt" option.

sfmlnet-window-2.dll.config

<configuration>
    <dllmap dll="csfml-window-2" target="/usr/local/lib/libcsfml-window.2.1.dylib"/>
</configuration>

sfmlnet-graphics-2.dll.config

<configuration>
    <dllmap dll="csfml-window-2" target="/usr/local/lib/libcsfml-window.2.1.dylib"/>
    <dllmap dll="csfml-graphics-2" target="/usr/local/lib/libcsfml-graphics.2.1.dylib"/>
</configuration>

Tao.OpenGl.dll.config

<configuration>
    <dllmap dll="opengl32.dll" target="/System/Library/Frameworks/OpenGL.framework/OpenGL"/>
</configuration>

Known issues