Blue Brain BioExplorer
main.cpp
Go to the documentation of this file.
1
/*
2
*
3
* The Blue Brain BioExplorer is a tool for scientists to extract and analyse
4
* scientific data from visualization
5
*
6
* This file is part of Blue Brain BioExplorer <https://github.com/BlueBrain/BioExplorer>
7
*
8
* Copyright 2020-2024 Blue BrainProject / EPFL
9
*
10
* This program is free software: you can redistribute it and/or modify it under
11
* the terms of the GNU General Public License as published by the Free Software
12
* Foundation, either version 3 of the License, or (at your option) any later
13
* version.
14
*
15
* This program is distributed in the hope that it will be useful, but WITHOUT
16
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
17
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
18
* details.
19
*
20
* You should have received a copy of the GNU General Public License along with
21
* this program. If not, see <https://www.gnu.org/licenses/>.
22
*/
23
24
#include "
Viewer.h
"
25
#include <
platform/core/Core.h
>
26
#include <
platform/core/common/Logs.h
>
27
#include <
platform/core/common/Types.h
>
28
#include <
platform/core/engineapi/Engine.h
>
29
#include <
platform/core/parameters/ParametersManager.h
>
30
31
int
main
(
int
argc,
const
char
** argv)
32
{
33
try
34
{
35
core::Core
core
(argc, argv);
36
core::initGLUT
(&argc, argv);
37
core::Viewer
viewer(
core
);
38
CORE_INFO
(
"Initializing Application..."
);
39
const
core::Vector2ui
& size =
core
.getParametersManager().getApplicationParameters().getWindowSize();
40
41
viewer.
create
(
"Core Viewer"
, size.x, size.y);
42
core::runGLUT
();
43
}
44
catch
(
const
std::runtime_error& e)
45
{
46
CORE_ERROR
(e.what());
47
return
1;
48
}
49
return
0;
50
}
Core.h
Engine.h
ParametersManager.h
Viewer.h
main
int main(int argc, const char **argv)
Definition:
main.cpp:31
core::BaseWindow::create
void create(const char *title, size_t width, size_t height)
Definition:
BaseWindow.cpp:361
core::Core
Definition:
Core.h:50
core::Viewer
Definition:
Viewer.h:33
core
Definition:
BaseWindow.cpp:53
core::initGLUT
void initGLUT(int *ac, const char **av)
dedicated namespace for 3D glut viewer widget
Definition:
BaseWindow.cpp:62
core::runGLUT
void runGLUT()
Definition:
BaseWindow.cpp:57
core::Vector2ui
glm::vec< 2, uint32_t > Vector2ui
Definition:
MathTypes.h:133
Logs.h
CORE_INFO
#define CORE_INFO(__msg)
Definition:
Logs.h:33
CORE_ERROR
#define CORE_ERROR(__msg)
Definition:
Logs.h:31
Types.h
platform
apps
viewer
main.cpp
Generated by
1.9.1