SLProject  4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
AppNodeGui.h
Go to the documentation of this file.
1 /**
2  * \file AppNodeGui.h
3  * \details The AppDemoGui class provides only the UI build function
4  * For more info on how to create a new app with SLProject see:
5  * https://github.com/cpvrlab/SLProject4/wiki/Creating-a-New-App
6  * For more info about App framework see:
7  * https://cpvrlab.github.io/SLProject4/app-framework.html
8  * \date Summer 2017
9  * \authors Marcus Hudritsch
10  * \copyright http://opensource.org/licenses/GPL-3.0
11  * \remarks Please use clangformat to format the code. See more code style on
12  * https://github.com/cpvrlab/SLProject4/wiki/SLProject-Coding-Style
13 */
14 
15 #ifndef NEWNODEGUI_H
16 #define NEWNODEGUI_H
17 
18 #include <SL.h>
19 
20 class SLScene;
21 class SLSceneView;
22 
23 //-----------------------------------------------------------------------------
24 //! ImGui UI class for the UI of the demo applications
25 /* The UI is completely build within this class by calling build function
26 AppNodeGui::build. This build function is passed in the slCreateSceneView and
27 it is called in SLSceneView::onPaint in every frame.
28 The entire UI is configured and built on every frame. That is why it is called
29 "Im" for immediate. See also the SLGLImGui class to see how it minimaly
30 integrated in the SLProject.
31 */
33 {
34 public:
35  static void build(SLScene* s, SLSceneView* sv);
37 };
38 //-----------------------------------------------------------------------------
39 #endif
string SLstring
Definition: SL.h:158
ImGui UI class for the UI of the demo applications.
Definition: AppNodeGui.h:33
static SLstring infoText
Definition: AppNodeGui.h:36
static void build(SLScene *s, SLSceneView *sv)
Creates the ImGui UI.
Definition: AppNodeGui.cpp:28
The SLScene class represents the top level instance holding the scene structure.
Definition: SLScene.h:47
SceneView class represents a dynamic real time 3D view onto the scene.
Definition: SLSceneView.h:69