SFML community forums

Bindings - other languages => General => Topic started by: tienery on February 20, 2016, 03:21:04 pm

Title: Haxe Binding for SFML
Post by: tienery on February 20, 2016, 03:21:04 pm
Hello, everyone!

I am writing a binding for SFML in the Haxe programming language, for anyone who is interested.

You can take a look here (https://github.com/tienery/hxsfml). The binding part of the library is complete. I will move onto completing the wrapper portion, which will allow you to use Haxe more naturally. The following is a list of things implemented into the binding:


Things that have not been implemented, such as networking, do not exist because the Haxe Standard Library provides the utilities to do these things, including creating input/output streams. Some functions may appear missing, such as loadFromMemory functions within their respective places, simply because of my lack of understanding for implementing void * signatures in Haxe. Apparently, it's easy, but extra care has to be taken when implementing this kind of functionality, something I am not confident in risking yet.

If, however, you believe you can implement it, you can make a pull request on Github.

You can use the OpenGL context with the use of linc_opengl (https://github.com/snowkit/linc_opengl). I have just recently added the functions into RenderTarget in the binding to allow you to mix OpenGL calls with SFML ones.

If you have any problems, you can post an issue on Github.

Thank you for your interest.
Title: Re: Haxe Binding for SFML
Post by: Ztormi on February 20, 2016, 09:20:19 pm
Neat
Haxe is cool  :)