PeriDyno
1.2.1
Loading...
Searching...
No Matches
D:
Peridyno
peridyno
src
Rendering
GUI
UbiGUI
UbiApp.cpp
Go to the documentation of this file.
1
#include "
UbiApp.h
"
2
3
namespace
dyno
4
{
5
UbiApp::UbiApp
(
GUIType
type)
6
:
AppBase
()
7
{
8
if
(type ==
GUIType::GUI_GLFW
)
9
{
10
mApp
=
new
GlfwApp
;
11
}
12
13
if
(type ==
GUIType::GUI_QT
)
14
{
15
#if (defined QT_GUI_SUPPORTED)
16
mApp
=
new
QtApp
;
17
#else
18
mApp
=
new
GlfwApp
;
19
#endif
20
}
21
22
if
(type ==
GUIType::GUI_WT
)
23
{
24
#if (defined WT_GUI_SUPPORTED)
25
mApp
=
new
WtApp
;
26
#else
27
mApp
=
new
GlfwApp
;
28
#endif
29
}
30
}
31
32
UbiApp::~UbiApp
()
33
{
34
delete
mApp
;
35
}
36
37
void
UbiApp::initialize
(
int
width,
int
height,
bool
usePlugin
/*= false*/
)
38
{
39
mApp
->initialize(width, height, usePlugin);
40
}
41
42
RenderWindow
*
UbiApp::renderWindow
()
43
{
44
return
mApp
->renderWindow();
45
}
46
47
void
UbiApp::mainLoop
()
48
{
49
mApp
->mainLoop();
50
}
51
52
}
UbiApp.h
dyno::AppBase::AppBase
AppBase()
Definition
AppBase.h:16
dyno::GlfwApp
Definition
GlfwApp.h:13
dyno::QtApp
Definition
QtApp.h:14
dyno::RenderWindow
Definition
RenderWindow.h:24
dyno::UbiApp::mainLoop
void mainLoop() override
Definition
UbiApp.cpp:47
dyno::UbiApp::mApp
AppBase * mApp
Definition
UbiApp.h:53
dyno::UbiApp::renderWindow
RenderWindow * renderWindow()
Definition
UbiApp.cpp:42
dyno::UbiApp::~UbiApp
~UbiApp()
Definition
UbiApp.cpp:32
dyno::UbiApp::UbiApp
UbiApp(GUIType type=GUIType::GUI_GLFW)
Definition
UbiApp.cpp:5
dyno::UbiApp::initialize
void initialize(int width, int height, bool usePlugin=false) override
Definition
UbiApp.cpp:37
dyno::WtApp
Definition
WtApp.h:7
dyno
This is an implementation of AdditiveCCD based on peridyno.
Definition
Array.h:25
dyno::GUIType
GUIType
Definition
UbiApp.h:31
dyno::GUI_WT
@ GUI_WT
Definition
UbiApp.h:34
dyno::GUI_QT
@ GUI_QT
Definition
UbiApp.h:33
dyno::GUI_GLFW
@ GUI_GLFW
Definition
UbiApp.h:32
Generated by
1.13.2