lloydw/libRocket — pull request #64 by noam-c (2012-09-14 07:59:08+00:00)
Title: Reintroduce tutorial samples to libRocket source tree

This pull request provides a fix for Issue 60 in libRocket (lloydw/libRocket#60). The tutorials were missing from the source tree since they used a much older version of the API and thus would not compile or correctly run using the current version of libRocket.

This change adds all the tutorial source back into the tree, and makes appropriate changes to get them compiling again:
- Updated DataSource namespace to Rocket::Controls (it was in Rocket::Core in the legacy version)
- Updated all references to EMP and replaced them with Rocket
- Replaced EMP_* macros with ROCKET_* macros (e.g. ROCKET_UNUSED,
ROCKET_ASSERT)
- Replaced #include with #include
- Renamed the "drag" tutorial project to "tutorial_drag" to prevent conflicts with the completed version: Samples/basic/drag.

In addition, updated many data/asset references (particularly usage of old PNG images, no longer compatible with the latest Samples/shell code) to use the existing TGA assets created for and used in the invaders sample.

The tutorials on the libRocket website will still need to be updated in order to yield code additions that correctly compile (and in the cases of datagrid_tree and tutorial_drag, to avoid segmentation faults from outdated usage of the APIs). However, if you follow the tutorials on the site and make appropriate tweaks (such as the aforementioned changes) to the suggested code, then the finished tutorial applications work exactly as desired.