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

File with the main function and two callbacks for the node demo app. More...

#include <App.h>
#include <AppCommon.h>
#include <AppNodeGui.h>
#include <AppNodeSceneView.h>
#include <AppNodeScene.h>
Include dependency graph for AppNodeMain.cpp:

Go to the source code of this file.

Functions

static SLSceneViewcreateSceneView (SLScene *scene, int myDPI, SLInputManager &inputManager)
 
static SLScenecreateScene (SLSceneID sceneID)
 
int SL_MAIN_FUNCTION (int argc, char *argv[])
 

Detailed Description

File with the main function and two callbacks for the node demo app.

Date
July 2014
Authors
Marcus Hudritsch
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 AppNodeMain.cpp.

Function Documentation

◆ createScene()

static SLScene* createScene ( SLSceneID  sceneID)
static

Definition at line 25 of file AppNodeMain.cpp.

26 {
27  return new AppNodeScene();
28 }

◆ createSceneView()

static SLSceneView* createSceneView ( SLScene scene,
int  myDPI,
SLInputManager inputManager 
)
static

Definition at line 18 of file AppNodeMain.cpp.

21 {
22  return new AppNodeSceneView(scene, myDPI, inputManager);
23 }

◆ SL_MAIN_FUNCTION()

int SL_MAIN_FUNCTION ( int  argc,
char *  argv[] 
)

Definition at line 30 of file AppNodeMain.cpp.

31 {
33  config.argc = argc;
34  config.argv = argv;
35  config.windowWidth = 640;
36  config.windowHeight = 480;
37  config.windowTitle = "SLProject Node Demo";
41 
42  return App::run(config);
43 }
static SLSceneView * createSceneView(SLScene *scene, int myDPI, SLInputManager &inputManager)
Definition: AppNodeMain.cpp:18
static SLScene * createScene(SLSceneID sceneID)
Definition: AppNodeMain.cpp:25
static void build(SLScene *s, SLSceneView *sv)
Creates the ImGui UI.
Definition: AppNodeGui.cpp:28
int run(Config config)
App::run implementation from App.h for the Emscripten platform.
Definition: AppAndroid.cpp:78
Config config
The configuration set in App::run.
Definition: AppAndroid.cpp:34
App configuration struct to be passed to the App::run function.
Definition: App.h:57
SLint windowWidth
Definition: App.h:60
SLint windowHeight
Definition: App.h:61
OnNewSceneViewCallback onNewSceneView
Definition: App.h:65
OnNewSceneCallback onNewScene
Definition: App.h:66
OnGuiBuildCallback onGuiBuild
Definition: App.h:72
int argc
Definition: App.h:58
char ** argv
Definition: App.h:59
SLstring windowTitle
Definition: App.h:62