[Vala] Vala SFML

2014-06-26 Thread Raphael Isemann
Hey everybody,

i played around with SFML some time ago and i thought i just dump the
results here on the Mailing List ;)

# Example Game

I made a example-game here: https://bitbucket.org/Teemperor/maans and
here is a old video about it: http://teemperor.de/video4.ogv (warning:
40MB ogv)
It only depends on csfml-2.0 (so the sfml2 C-bindings) and a recent
glib/gio version.
To build it simply run cmake in a external build-directory like:

$ mkdir build  cd build  cmake . ..  make  ./maans

NOTE: the SFML2 C-Headers need to be a t SFML/Graphics.h to work,
otherwise adjust the top of the vapi-files accordingly.

All source for the game (if not otherwise specified in the header) is
released as Public Domain.

# Crosscompile to Windows

As everybody is curious about how to cross-compile that to windows i
posted the enviroment i use for my daily windows-builds here:
http://teemperor.de/dl/dist.zip

For those who want to run untrusted code from the internet (that you
downloaded over HTTP), here are the Windows-Nightlies:
http://teemperor.de/dl/maans/maans-win.zip

Just unzip it and look at the included shell-file (where you need to
adjust a path to point to the right directory). Thanks to tarnyko for
the gtk3-win32 bundle which containes all libraries needed for
cross-compiling and his tutorial for that
(http://www.tarnyko.net/en/?q=node/45).
Obvious note: You need gcc-msvc for cross-compiling.

# VAPIs

I used the bindings from hohoo
(https://bitbucket.org/hohoo/vala-sfml/src) at the beginning, but i
rewrote them from scratch for the biggest part that they now use
properties and don't throw compile-errors. I released them under
Public Domain (i think i rewrote enough from scratch that i can do
that, IANAL).

I also release all Typos in this mail as Public Domain, so feel free
to reuse them.

Anyway, have fun with that, just reply if you have a question about
the code or compile-errors.

- Raphael Isemann
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Vala SFML

2014-06-26 Thread Luca Bruno
On 26/06/2014 12:05, Raphael Isemann wrote:
 Hey everybody,

 i played around with SFML some time ago and i thought i just dump the
 results here on the Mailing List ;)

 # Example Game

 I made a example-game here: https://bitbucket.org/Teemperor/maans and
 here is a old video about it: http://teemperor.de/video4.ogv (warning:
 40MB ogv)
 It only depends on csfml-2.0 (so the sfml2 C-bindings) and a recent
 glib/gio version.
 To build it simply run cmake in a external build-directory like:

 $ mkdir build  cd build  cmake . ..  make  ./maans

 NOTE: the SFML2 C-Headers need to be a t SFML/Graphics.h to work,
 otherwise adjust the top of the vapi-files accordingly.

 All source for the game (if not otherwise specified in the header) is
 released as Public Domain.

 # Crosscompile to Windows

 As everybody is curious about how to cross-compile that to windows i
 posted the enviroment i use for my daily windows-builds here:
 http://teemperor.de/dl/dist.zip

 For those who want to run untrusted code from the internet (that you
 downloaded over HTTP), here are the Windows-Nightlies:
 http://teemperor.de/dl/maans/maans-win.zip

 Just unzip it and look at the included shell-file (where you need to
 adjust a path to point to the right directory). Thanks to tarnyko for
 the gtk3-win32 bundle which containes all libraries needed for
 cross-compiling and his tutorial for that
 (http://www.tarnyko.net/en/?q=node/45).
 Obvious note: You need gcc-msvc for cross-compiling.

 # VAPIs

 I used the bindings from hohoo
 (https://bitbucket.org/hohoo/vala-sfml/src) at the beginning, but i
 rewrote them from scratch for the biggest part that they now use
 properties and don't throw compile-errors. I released them under
 Public Domain (i think i rewrote enough from scratch that i can do
 that, IANAL).

 I also release all Typos in this mail as Public Domain, so feel free
 to reuse them.

 Anyway, have fun with that, just reply if you have a question about
 the code or compile-errors.
Nice job. You could ask for inclusion in
https://github.com/nemequ/vala-extra-vapis
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list