Class for graphics.
More...
#include <Graphics.hpp>
Class for graphics.
This class is the root class of the 3D engine. It handles modules, will create the Graphics::Renderer based on the rendererType
given in the Graphics::InitInfo structure.
Definition at line 25 of file Graphics.hpp.
◆ Graphics() [1/3]
lug::Graphics::Graphics::Graphics |
( |
const std::string & |
appName, |
|
|
const Core::Version & |
appVersion |
|
) |
| |
Constructs a Graphics instance.
- Parameters
-
[in] | appName | The application name. |
[in] | appVersion | The application version. |
Definition at line 15 of file Graphics.cpp.
◆ Graphics() [2/3]
lug::Graphics::Graphics::Graphics |
( |
const Graphics & |
| ) |
|
|
delete |
◆ Graphics() [3/3]
lug::Graphics::Graphics::Graphics |
( |
Graphics && |
| ) |
|
|
delete |
◆ ~Graphics()
lug::Graphics::Graphics::~Graphics |
( |
| ) |
|
|
default |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ init()
bool lug::Graphics::Graphics::init |
( |
const InitInfo & |
initInfo | ) |
|
Initializes the application with the informations filled in initInfo
structure.
- Parameters
-
[in] | initInfo | The initialize information. |
- Returns
true
if the initialization was successful.
Definition at line 17 of file Graphics.cpp.
◆ beginInit()
bool lug::Graphics::Graphics::beginInit |
( |
const InitInfo & |
initInfo | ) |
|
Begin the initialization of the application with the informations filled in initInfo
structure. Just create the lug::Graphics::Renderer and begin its initialization.
- Parameters
-
[in] | initInfo | The initialize information. |
- Returns
true
if the initialization was successful.
Definition at line 21 of file Graphics.cpp.
◆ finishInit()
bool lug::Graphics::Graphics::finishInit |
( |
| ) |
|
Finish the initialization of the application with the informations filled in initInfo
structure. Finish the initialization of the lug::Graphics::Renderer.
- Returns
true
if the initialization was successful.
Definition at line 43 of file Graphics.cpp.
◆ isModuleLoaded()
Check if a module is loaded.
- Parameters
-
[in] | type | The module type to check. |
- Returns
true
if the module is loaded.
Definition at line 1 of file Graphics.inl.
◆ getLoadedMandatoryModules()
const std::set< Module::Type > & Graphics::getLoadedMandatoryModules |
( |
| ) |
const |
|
inline |
◆ getLoadedOptionalModules()
const std::set< Module::Type > & Graphics::getLoadedOptionalModules |
( |
| ) |
const |
|
inline |
◆ unsupportedModule()
void lug::Graphics::Graphics::unsupportedModule |
( |
Module::Type |
type | ) |
|
◆ getRenderer()
Renderer * Graphics::getRenderer |
( |
| ) |
const |
|
inline |
Gets the renderer.
- Returns
- A raw pointer to the renderer instance.
Definition at line 16 of file Graphics.inl.
◆ _appName
std::string lug::Graphics::Graphics::_appName |
|
private |
◆ _appVersion
◆ _initInfo
InitInfo lug::Graphics::Graphics::_initInfo |
|
private |
◆ _loadedMandatoryModules
std::set<Module::Type> lug::Graphics::Graphics::_loadedMandatoryModules {} |
|
private |
◆ _loadedOptionalModules
std::set<Module::Type> lug::Graphics::Graphics::_loadedOptionalModules {} |
|
private |
◆ _renderer
std::unique_ptr<Renderer> lug::Graphics::Graphics::_renderer {nullptr} |
|
private |
The documentation for this class was generated from the following files: