SLProject  4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
App Namespace Reference

The App namespace declares the App::Config struct and the App::run function. More...

Classes

struct  Config
 App configuration struct to be passed to the App::run function. More...
 

Typedefs

typedef SLSceneView *(* OnNewSceneViewCallback) (SLScene *scene, int curDPI, SLInputManager &inputManager)
 
typedef SLScene *(* OnNewSceneCallback) (SLSceneID sceneID)
 
typedef void(* OnBeforeSceneDeleteCallback) (SLSceneView *sv, SLScene *s)
 
typedef void(* OnBeforeSceneLoadCallback) (SLSceneView *sv, SLScene *s)
 
typedef void(* OnBeforeSceneAssemblyCallback) (SLSceneView *sv, SLScene *s)
 
typedef void(* OnAfterSceneAssemblyCallback) (SLSceneView *sv, SLScene *s)
 
typedef bool(* OnUpdateCallback) (SLSceneView *sv)
 
typedef void(* OnGuiBuildCallback) (SLScene *s, SLSceneView *sv)
 
typedef void(* OnGuiLoadConfigCallback) (SLint dotsPerInch)
 
typedef void(* OnGuiSaveConfigCallback) ()
 

Functions

int run (Config config)
 App::run implementation from App.h for the Emscripten platform. More...
 

Variables

Config config
 The configuration set in App::run. More...
 

Detailed Description

The App namespace declares the App::Config struct and the App::run function.

An App::Config can be passed to the run function defined. Beside this is contains the callback functions typedefs. For more info on how to create a new app with SLProject see: https://github.com/cpvrlab/SLProject4/wiki/Creating-a-New-App For more info about App framework see: https://cpvrlab.github.io/SLProject4/app-framework.html

Typedef Documentation

◆ OnAfterSceneAssemblyCallback

typedef void(* App::OnAfterSceneAssemblyCallback) (SLSceneView *sv, SLScene *s)

Definition at line 49 of file App.h.

◆ OnBeforeSceneAssemblyCallback

typedef void(* App::OnBeforeSceneAssemblyCallback) (SLSceneView *sv, SLScene *s)

Definition at line 48 of file App.h.

◆ OnBeforeSceneDeleteCallback

typedef void(* App::OnBeforeSceneDeleteCallback) (SLSceneView *sv, SLScene *s)

Definition at line 46 of file App.h.

◆ OnBeforeSceneLoadCallback

typedef void(* App::OnBeforeSceneLoadCallback) (SLSceneView *sv, SLScene *s)

Definition at line 47 of file App.h.

◆ OnGuiBuildCallback

typedef void(* App::OnGuiBuildCallback) (SLScene *s, SLSceneView *sv)

Definition at line 51 of file App.h.

◆ OnGuiLoadConfigCallback

typedef void(* App::OnGuiLoadConfigCallback) (SLint dotsPerInch)

Definition at line 52 of file App.h.

◆ OnGuiSaveConfigCallback

typedef void(* App::OnGuiSaveConfigCallback) ()

Definition at line 53 of file App.h.

◆ OnNewSceneCallback

typedef SLScene*(* App::OnNewSceneCallback) (SLSceneID sceneID)

Definition at line 45 of file App.h.

◆ OnNewSceneViewCallback

typedef SLSceneView*(* App::OnNewSceneViewCallback) (SLScene *scene, int curDPI, SLInputManager &inputManager)

Definition at line 44 of file App.h.

◆ OnUpdateCallback

typedef bool(* App::OnUpdateCallback) (SLSceneView *sv)

Definition at line 50 of file App.h.

Function Documentation

◆ run()

int App::run ( Config  config)

App::run implementation from App.h for the Emscripten platform.

App::run implementation from App.h for the GLFW platform.

Definition at line 78 of file AppAndroid.cpp.

79 {
80  App::config = configuration;
81  return 0;
82 }
Config config
The configuration set in App::run.
Definition: AppAndroid.cpp:34

Variable Documentation

◆ config

App::Config App::config
extern

The configuration set in App::run.

Definition at line 34 of file AppAndroid.cpp.