SDL2 bindings for Vala and Genie

Hello,

As you probably know SDL1.2 had a Vala and Genie binding: knowed as
".vapi file". You can see it at valadoc http://www.valadoc.org.
Now we are finishing Vala and Genie binding for SDL2.0.

But, there are some black holes for ultimate: threads, image format’s
macros, sdlnet, and others, but in generaly is finished. I’m not an
expert, and any help for finish this “vapies” is wellcome. Make the
bindings for Vala/Genie is not dificult, only study .h files and convert
them on vapi file, for example:
In render.h file:

extern DECLSPEC int SDLCALL SDL_UpdateTexture(SDL_Texture * texture,
const SDL_Rect * rect,
const void *pixels, int
pitch);
transformed in vapi file:

     [CCode (cname="SDL_UpdateTexture")]
     public int update(SDL.Rect? rect, void* pixels, int pitch);

My problem is that I’m not programer and i have dificulties to
understand some lines of .h files and how translate them to vapi.

The Vala/Genie advantage is clear for game-developpers because is fast
(vala benchmark
http://code.google.com/p/vala-benchmarks/wiki/BenchResultss), clear
code, Object oriented, easy to learn using “Python like” coding with
Genie, and is posible to compile directly to c. The limit is the
dependency of glib library, but actually this library ported to many
operative sistems.(included to Android by Tarnyko
http://www.tarnyko.net/en/?q=node/25).
So, the use of sdl+vala on Android may be a reallity, and is not far.
Anyone here can help?

Regards, Gontzal.

2013/9/11 txasatonga

Hello,

As you probably know SDL1.2 had a Vala and Genie binding: knowed as
".vapi file". You can see it at valadoc http://www.valadoc.org.
Now we are finishing Vala and Genie binding for SDL2.0.

But, there are some black holes for ultimate: threads, image format’s
macros, sdlnet, and others, but in generaly is finished. I’m not an expert,
and any help for finish this “vapies” is wellcome. Make the bindings for
Vala/Genie is not dificult, only study .h files and convert them on vapi
file, for example:
In render.h file:

extern DECLSPEC int SDLCALL SDL_UpdateTexture(SDL_Texture * texture,
const SDL_Rect * rect,
const void *pixels, int
pitch);
transformed in vapi file:

    [CCode (cname="SDL_UpdateTexture")]
    public int update(SDL.Rect? rect, void* pixels, int pitch);

My problem is that I’m not programer and i have dificulties to understand
some lines of .h files and how translate them to vapi.

The Vala/Genie advantage is clear for game-developpers because is fast (vala
benchmark http://code.google.com/p/vala-benchmarks/wiki/BenchResultss),
clear code, Object oriented, easy to learn using “Python like” coding with
Genie, and is posible to compile directly to c. The limit is the dependency
of glib library, but actually this library ported to many operative
sistems.(included to Android by Tarnykohttp://www.tarnyko.net/en/?q=node/25
).
So, the use of sdl+vala on Android may be a reallity, and is not far.
Anyone here can help?

Regards, Gontzal.

Hi,

where can one find these work-in-progress vapis?

Jonas

Message-ID: <5230C440.7000704 at gmail.com>
Content-Type: text/plain; charset=“iso-8859-1”; Format=“flowed”

Hello,

As you probably know SDL1.2 had a Vala and Genie binding: knowed as
".vapi file". You can see it at valadoc http://www.valadoc.org.
Now we are finishing Vala and Genie binding for SDL2.0.

But, there are some black holes for ultimate: threads, image format’s
macros, sdlnet, and others, but in generaly is finished. I’m not an
expert, and any help for finish this “vapies” is wellcome. Make the
bindings for Vala/Genie is not dificult, only study .h files and convert
them on vapi file, for example:
In render.h file:

extern DECLSPEC int SDLCALL SDL_UpdateTexture(SDL_Texture * texture,
const SDL_Rect * rect,
const void *pixels, int
pitch);
transformed in vapi file:

     [CCode (cname="SDL_UpdateTexture")]
     public int update(SDL.Rect? rect, void* pixels, int pitch);

My problem is that I’m not programer and i have dificulties to
understand some lines of .h files and how translate them to vapi.

The Vala/Genie advantage is clear for game-developpers because is fast
(vala benchmark
http://code.google.com/p/vala-benchmarks/wiki/BenchResultss), clear
code, Object oriented, easy to learn using “Python like” coding with
Genie, and is posible to compile directly to c. The limit is the
dependency of glib library, but actually this library ported to many
operative sistems.(included to Android by Tarnyko
http://www.tarnyko.net/en/?q=node/25).
So, the use of sdl+vala on Android may be a reallity, and is not far.
Anyone here can help?

Regards, Gontzal.

You might try here: http://projects.goldelico.com/p/gta04-main/page/Community/
Last time I heard, OpenMoko-style projects tended to use a lot of
Vala, so they might be interested.> Date: Wed, 11 Sep 2013 21:28:00 +0200

From: txasatonga
To: sdl at lists.libsdl.org
Subject: [SDL] SDL2 bindings for Vala and Genie.

Hi,

where can one find these work-in-progress vapis?

Jonas

Sorry the Sdl2 vapies in progress are here:
https://gitorious.org/sdl-2-0-vala-vapi
Your help is wellcome!!

Gontzal