GSoC/GCI Archive
Google Code-in 2012 Copyleft Games Group

Hedgewars: Restore branch

completed by: O. Michael Hartman

mentors: Andrey Korotaev, Xeli, Sheepy, koda

Remember to join our IRC channel when working on this task! We are on #hedgewars at If you are new to IRC, read this tutorial from a past GCI participant.

Your task

Hedgewars has a branch webgl where we are (slowly) porting our code to WebGL. As it is a work in progress, there are many missing files (the shaders, found in another repo), many source compilation problem (shaders not loaded, or not working on osx) and a few conversion problems (esp. with pas2c).

Your task is to restore this branch in a full working state, enabling and disabling GL2 at compile time, making GL2 work and have a successful pas2c conversion.


A working patch, that applies cleanly to our source tree. This patch should be in the form of a pull from clone, hg export or unified diff format (in order of preference) implementing the functionality required.