24 #    define SL_MAIN_FUNCTION main 
   26 #    define SL_MAIN_FUNCTION slAndroidMain 
int SLSceneID
Scene identifier.
 
constexpr SLSceneID SL_EMPTY_SCENE_ID
SLSceneID for an empty scene.
 
typedef void(SL_STDCALL *cbOnImGuiBuild)(SLScene *s
Callback function typedef for ImGui build function.
 
SLScene SLSceneView SLint sceneID
 
The SLScene class represents the top level instance holding the scene structure.
 
SceneView class represents a dynamic real time 3D view onto the scene.
 
The App namespace declares the App::Config struct and the App::run function.
 
SLScene *(* OnNewSceneCallback)(SLSceneID sceneID)
 
void(* OnAfterSceneAssemblyCallback)(SLSceneView *sv, SLScene *s)
 
SLSceneView *(* OnNewSceneViewCallback)(SLScene *scene, int curDPI, SLInputManager &inputManager)
 
int run(Config config)
App::run implementation from App.h for the Emscripten platform.
 
void(* OnGuiSaveConfigCallback)()
 
void(* OnBeforeSceneLoadCallback)(SLSceneView *sv, SLScene *s)
 
Config config
The configuration set in App::run.
 
void(* OnBeforeSceneDeleteCallback)(SLSceneView *sv, SLScene *s)
 
bool(* OnUpdateCallback)(SLSceneView *sv)
 
void(* OnGuiBuildCallback)(SLScene *s, SLSceneView *sv)
 
void(* OnBeforeSceneAssemblyCallback)(SLSceneView *sv, SLScene *s)
 
void(* OnGuiLoadConfigCallback)(SLint dotsPerInch)
 
App configuration struct to be passed to the App::run function.
 
OnGuiLoadConfigCallback onGuiLoadConfig
 
OnAfterSceneAssemblyCallback onAfterSceneAssembly
 
OnNewSceneViewCallback onNewSceneView
 
OnUpdateCallback onUpdate
 
OnBeforeSceneAssemblyCallback onBeforeSceneAssembly
 
OnGuiSaveConfigCallback onGuiSaveConfig
 
OnNewSceneCallback onNewScene
 
OnGuiBuildCallback onGuiBuild
 
OnBeforeSceneLoadCallback onBeforeSceneLoad
 
OnBeforeSceneDeleteCallback onBeforeSceneDelete