SFML community forums
Bindings - other languages => D => Topic started by: Kobie on July 06, 2011, 09:38:09 am
-
Edit: Deleted.
-
To build DSFML, you need dsss.
Then you configure your project compilation setting to link with DSML, CSFML and SFML.
You'll find severals exemples of code in DSML source code repository to know how to use it. This is similar to SFML, but in D.
-
How would I setup DSFML 1.3 (from the downloads section on the main site) with DMD2
You wouldn't.
That package is horribly outdated and doesn't even compile with D2.
You need to use the latest git revision.
For DSFML itself using rdmd is enough, it's a build tool that comes with the dmd package.
But to run the program you need to compile SFML and then CSFML via CMake first.
-
Hi,
I know, posting to this topic is a little late, but I have questions regarding the answers of this thread.
I am new to D and try to use the current (D)SFML2 snapshot.
@Trass3r : Which file should I run with rdmd ( sorry, me D newbie ) ?
@deadalnix : Where can I find this DSML source code repository ?
Can't find any link to that on sfml-def.orgL or dsource.org and its not included in the snapshot ( can't find it in GIT erpo either ).
Cheers, ParticlePeter !
-
Seems like Laurent removed the bindings from the git repo.
No clue where he put it.
You just use rdmd with the file containing main(). It automatically finds all imported modules then.
If you are new to D I don't recommend DSFML though since I don't maintain it anymore.
A proper solution should be based on SWIG.
-
Seems like Laurent removed the bindings from the git repo.
No clue where he put it.
Nowhere. Bindings are no longer hosted on the SFML repository, and most of them have moved to their own repository.
There's a 'bindings_removed' tag in the git history to find the revision just before they were removed.
-
Thanks for both of your answers.
@Laurent: Are those c based bindings still maintained ? Or will there be only the c++ Version in future ? If the c bindings will be maintained, where is the Repository that you were talking about ? The bindings_removed tag is just an archive, but the info there also tells about a repo.
Thx,
ParticlePeter
-
https://github.com/SFML/CSFML
https://github.com/SFML/SFML.Net
https://github.com/Groogy/rbSFML
;)
-
Just want to notify I'm playing around with D a little but I am not creating a binding. I won't because I don't have the time for it. I barely have time to think about rbSFML. But if anyone is interested in taking it up I can give out my playground sandbox thingy.
Getting D to link against CSFML was hard, so I did everything dynamically instead. Other than that and a few other small stuff in the D compiler. The language is freaking sweet and I would love to see someone pick it up again and create a new DSFML bindings for version 2.
It's a perfect mix between managed and native languages if you ask me.
-
Getting D to link against CSFML was hard, so I did everything dynamically instead.
Yep that's a big open issue. DSFML ought to load everything statically.
But that makes inheritance in the wrapper more complicated.
Other than that and a few other small stuff in the D compiler. The language is freaking sweet and I would love to see someone pick it up again and create a new DSFML bindings for version 2.
It's a perfect mix between managed and native languages if you ask me.
Glad you like it 8)
The system module should still be pretty usable, network module isn't required -> stdlib
-
Nah currently I only bind the things I need manually. So if it's something I don't need it will never be bound.
Since I'm playing around it's more than enough. I took a peek at swig as well but it feelt like more work than what I currently do.
-
Getting D to link against CSFML was hard, so I did everything dynamically instead.
Yep that's a big open issue. DSFML ought to load everything statically.
But that makes inheritance in the wrapper more complicated.
Other than that and a few other small stuff in the D compiler. The language is freaking sweet and I would love to see someone pick it up again and create a new DSFML bindings for version 2.
I'm working on it.
It is linked to C++ directly (with some C++ glue between SFML and D code). Most of it is done, but the build system is currently very broken and the new graphic API isn't readu yet, amking the grapgics module unusable (ATM).