Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Ocsfml, an ocaml binding of the SFML  (Read 2811 times)

0 Members and 1 Guest are viewing this topic.

jDralliam

  • Jr. Member
  • **
  • Posts: 50
    • View Profile
Ocsfml, an ocaml binding of the SFML
« on: May 26, 2012, 07:58:44 pm »
Hello,

I would like to present Ocsfml, an ocaml binding of the SFML. We, Kyo Dralliam (Kenji Maillard) and I (Jun Maillard) have been working on it for about 1 year.

The library
Ocsfml is a binding of all the modules of SFML; however, threads and unicode support haven't been bound yet. The binding seems to work well on Linux, Mac OS X and Windows.
In order to support some features of the SFML (drawable, ...), we chose to keep the original OO philosphy.
Ocaml's GC is able to manage most of Ocsfml objects lifetime; instance of ressource classes should be explicitely destroyed.
Ocsfml may be linked to native and bytecode executable; moreover, on Unix system, the bytecode library may be load on the ocaml toplevel.

The sources
Sources are available on Github : https://github.com/JoeDralliam/Ocsfml.

The documentation
An adaptation of the SFML orginal documentation may be found there : http://ocsfml.forge.ocamlcore.org/ocsfml.docdir/index.html.

Precompiled libraries
Precompiled libraries for linux (gcc-64) and windows (msvc32/64) are coming soon.

Please don't hesitate to try, comment or to give your opinion on specific aspect !

jDralliam

  • Jr. Member
  • **
  • Posts: 50
    • View Profile
Re: Ocsfml, an ocaml binding of the SFML
« Reply #1 on: May 29, 2012, 05:28:45 pm »
Binaries for Windows and Linux are now available : http://ocsfml.forge.ocamlcore.org/download.html

On Windows, you may choose between linking against SFML statically or dynamically :
  • when linking statically, you don't need any specific version of the SFML (the one used is included into ocsfml libraries)
  • when linking dynamically, you need SFML 2.0 Dlls at the runtime. However, as I am not using the RC, I am not certain that the RC Dllls are compatible

On Linux, only dynamic linking is currently supported. SFML .so files must be accessible at link time and at runtime.

 

anything