SFML community forums

Bindings - other languages => D => Topic started by: aldacron on June 29, 2012, 11:01:41 am

Title: New D Binding to SFML2
Post by: aldacron on June 29, 2012, 11:01:41 am
I've recently completed a binding to SFML2 as part of the Derelict 3 project (https://github.com/aldacron/Derelict3). To use it, just checkout the Derelict 3 source from git and follow the instructions in the readme to build Derelict. You'll need to link with DerelictUtil and DerelictSFML2. You don't need to link any SFML libraries as Derelict loads the shared libs when you tell it to. For example, DerelictSFML2System.load(), DerelictSFML2Window.load() and so on. Make sure you have the CSFML2 shared libraries you want to use somewhere on your system lib path (in the app directory on Windows, for example). Derelict will automatically unload the libraries on shutdown.

Please be aware that this is untested at the moment. Also, Derelict 3 currently lacks documentation. If you're new to Derelict, the core of the documentation for Derelict 2 (http://dsource.org/projects/derelict) still mostly applies (FYI, there's a similar binding for SFML 1.6 in Derelict 2 if you prefer). Also, you can ask for help in the Derelict forums (http://dsource.org/forums/viewforum.php?f=19&sid=8f9d70d5fd952520bc759b6f1469b17c) or in #D on freenode.