derelict-sfml2 1.1.0

A dynamic binding to the SFML2 libraries.


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

DerelictSFML2

Dynamic bindings to version 2.1 of [the SFML libraries][1] for the D Programming Language.

For information on how to build DerelictSFML2 and link it with your programs, please see the post [Using Derelict] at The One With D.

For information on how to load the SFML2 libraries via DerelictSFML2, see the page [DerelictUtil for Users][3] at the DerelictUtil Wiki. Note that SFML2 is not a single library, but a collection of libraries. Each library has a loader in DerelictSFML2. Here's an example:

import derelict.sfml2.system; // For the system library.
import derelict.sfml2.window; // For the window library.
import derelict.sfml2.audio; // For the audio library.
import derelict.sfml2.graphics; // For the graphics library.
import derelict.sfml2.network; // For the network library.

void main() {
    // Load the SFML2 System libraries you need. Note that this sample inports
    // and loads them all, but you only need to do so for the libraries you intend
    // to actually use.
    DerelictSFML2System.load();
    DerelictSFML2Window.load();
    DerelictSFML2Audio.load();
    DerelictSFML2Graphics.load();
    DerelictSFML2Network.load();

    // Now you can call functions from the all of the SFML2 libraries.
}

Finally, it should be noted that there are two versions of the SFML2 shared libraries. One is written in C++, the other in C. For DerelictSFML2, you need to use the C version of the libraries, known as CSFML. DerelictSFML2 cannot load the C++ SFML2 libraries.

[1] http://www.sfml-dev.org/ [2] http://dblog.aldacron.net/derelict-help/using-derelict/ [3] https://github.com/DerelictOrg/DerelictUtil/wiki/DerelictUtil-for-Users

Authors:
  • Mike Parker
Dependencies:
derelict-util
Versions:
4.0.0-beta.2 2017-Dec-04
4.0.0-beta.1 2017-Jun-16
3.0.2 2016-Feb-14
3.0.1 2015-Sep-04
3.0.0 2015-Aug-29
Show all 23 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 1 downloads this month

  • 8150 downloads total

Score:
1.6
Short URL:
derelict-sfml2.dub.pm