This section will get you started with creating new native applications using VrAppFramework.
VrTemplate is the best starting place for creating your own mobile app using VrAppFramework. The VrTemplate project is set up for exploratory work and as a model for setting up similar native applications using the Application Framework.
We include the Python script make_new_project.py (for Mac OS X) and make_new_project.bat (with wrapper for Windows) to simplify renaming the project name set in the template.
Usage Example: Windows
To create your own mobile app based on VrTemplate, perform the following steps:
make_new_project.bat VrTestApp YourCompanyName
The Java file VrSamples/Native/VrTestApp/java/com/YourCompanyName/vrtestapp/MainActivity.java handles loading the native library that was linked against VrApi, then calls nativeSetAppInterface() to allow the C++ code to register the subclass of VrAppInterface that defines the application. See VrAppFramework/Include/App.h for comments on the interface.
The standard Oculus convenience classes for string, vector, matrix, array, et cetera are available in the Oculus LibOVRKernel, located at LibOVRKernel\Src\. You will also find convenience code for OpenGL ES texture, program, geometry, and scene processing that is used by the demos.