Saturday, September 07, 2013

GWEN SDL2 GUI Renderer

To try out the new SDL2 SDK I ported GWork (a fork of GWEN) to it.

It mostly went across quite easily, apart from reading pixel values, which GWEN uses to get the colours used when drawing. It is difficult to read pixels in a texture as you don't know the format, so I had to keep a surface. Apart from that though it was fairly easy.

SDL2 renderer Mac OSX 10.8

SDL2 renderer Windows 7

Please read the readme at the Github project for more details. If you have any problems report them at the issue tracker.


[8/9/13] Premake works for Windows now.


Mosa said...

I'm a newbie to GWEN. Currently trying to make a game in Allegro5, and cannot find How I can link the GWEN to my Project. I'm on windows and using VS2012. Is it just copy paste the directories "include", "lib" and the "bin"..?

Chin Billy said...

@Mosa Hi there. The easiest way to link is to include the GWEN project in your solution, and then add GWEN as a depenency of you project. This tells VS to compile GWEN before your project, and that they should be linked. You'll need GWEN-static and the Renderer-Allegro projects.

Mosa said...