ShishGL
1.0
A simple modular cross-platform graphics library
CoreApplication.hpp
Go to the documentation of this file.
1
/*============================================================================*/
2
#ifndef SHISHGL_CORE_APPLICATION_HPP
3
#define SHISHGL_CORE_APPLICATION_HPP
4
/*============================================================================*/
5
#include <cstdint>
6
#include <unordered_set>
7
8
#include "
IPlatform.hpp
"
9
/*============================================================================*/
10
namespace
Sh
{
11
12
static
constexpr
char
RUNTIME_DIR[] =
"/home/shishqa/dev/MIPT/2020_3/CPP/projects/"
13
"00_ShishGL/assets"
;
14
15
class
CoreApplication
{
16
public
:
17
18
static
bool
init
(
int
* argc_ptr,
char
* argv[],
19
const
char
* runtime_dir =
"./"
);
20
21
static
uint8_t
run
();
22
23
static
bool
terminate
();
24
25
virtual
~CoreApplication
() =
default
;
26
27
private
:
28
29
CoreApplication
() =
default
;
30
31
/*--------------------------------------------------------------------*/
32
33
static
bool
is_initialized;
34
35
};
36
37
}
38
/*============================================================================*/
39
#endif //SHISHGL_CORE_APPLICATION_HPP
40
/*============================================================================*/
Sh::CoreApplication
Definition:
CoreApplication.hpp:15
Sh::CoreApplication::~CoreApplication
virtual ~CoreApplication()=default
Sh
Definition:
CoreApplication.hpp:10
Sh::CoreApplication::run
static uint8_t run()
Definition:
CoreApplication.cpp:44
IPlatform.hpp
Sh::CoreApplication::terminate
static bool terminate()
Definition:
CoreApplication.cpp:113
Sh::CoreApplication::init
static bool init(int *argc_ptr, char *argv[], const char *runtime_dir="./")
Definition:
CoreApplication.cpp:18
include
ShishGL
Core
CoreApplication.hpp
Generated by
1.8.20