While native platform access is not officially documented yet, low-level platform access is provided via the platform API (see launchpad.net/platform-api). With the platform API, you are able to easily bootstrap an EGL/GLES2 context, setup input handling, access sensors and location services etc.. As mentioned before, we do not have a complete set of documentation available, yet, but our Qt platform abstraction implementation might be helpful in getting started. EGL context bootstrapping is done in:
* http://bazaar.launchpad.net/~phablet-team/qtubuntu/trunk/view/head:/src/platforms/base/screen.cc
* http://bazaar.launchpad.net/~phablet-team/qtubuntu/trunk/view/head:/src/platforms/base/context.cc
* http://bazaar.launchpad.net/~phablet-team/qtubuntu/trunk/view/head:/src/platforms/base/integration.cc
Surface creation is done here:
* http://bazaar.launchpad.net/~phablet-team/qtubuntu/trunk/view/head:/src/platforms/base/window.cc
Input handling and callback setup:
* http://bazaar.launchpad.net/~phablet-team/qtubuntu/trunk/view/head:/src/platforms/ubuntu/ubuntucommon/window.cc
A very simple example can be found here:
http://bazaar.launchpad.net/~phablet-team/platform-api/trunk/view/head:/src/ubuntu/hybris/tests/test_c_api.cpp#L90
Hope that helps. If not, feel free to jump over to #ubuntu-touch on freenode. My nick is tvoss.