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

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

#include <SL.h>
#include <SLEnums.h>
Include dependency graph for App.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

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

Namespaces

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

Macros

#define SL_MAIN_FUNCTION   main
 

Typedefs

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

Functions

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

Variables

Config App::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

Date
June 2024
Authors
Marino von Wattenwyl
Remarks
Please use clangformat to format the code. See more code style on https://github.com/cpvrlab/SLProject4/wiki/SLProject-Coding-Style

Definition in file App.h.

Macro Definition Documentation

◆ SL_MAIN_FUNCTION

#define SL_MAIN_FUNCTION   main

Definition at line 24 of file App.h.