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

ImGui UI class for the UI of the demo applications. More...

#include <AppNodeGui.h>

Static Public Member Functions

static void build (SLScene *s, SLSceneView *sv)
 Creates the ImGui UI. More...
 

Static Public Attributes

static SLstring infoText = ""
 

Detailed Description

ImGui UI class for the UI of the demo applications.

Definition at line 32 of file AppNodeGui.h.

Member Function Documentation

◆ build()

void AppNodeGui::build ( SLScene s,
SLSceneView sv 
)
static

Creates the ImGui UI.

This function must be passed as void* pointer to the slCreateSceneView function. It is called in SLSceneView::onPaint for each frame.

Definition at line 28 of file AppNodeGui.cpp.

29 {
30  ImGui::SetNextWindowPos(ImVec2(0.0f, 0.0f));
31  ImGui::Begin("Scene Information",
32  0,
33  ImGuiWindowFlags_NoResize |
34  ImGuiWindowFlags_AlwaysAutoResize |
35  ImGuiWindowFlags_NoMove);
36  ImGui::TextUnformatted(infoText.c_str());
37  ImGui::End();
38 }
static SLstring infoText
Definition: AppNodeGui.h:36

Member Data Documentation

◆ infoText

SLstring AppNodeGui::infoText = ""
static

Definition at line 36 of file AppNodeGui.h.


The documentation for this class was generated from the following files: