The V-Gears main applicacion.
More...
#include <VGearsApplication.h>
The V-Gears main applicacion.
◆ ResourceManagerVector
List of resource managers.
◆ Application() [1/2]
VGears::Application::Application |
( |
Ogre::String |
pluginsFileName, |
|
|
Ogre::String |
resourcesFile, |
|
|
Ogre::String |
logFileName |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
[in] | pluginsFileName | Path to the plugins file. |
[in] | resourcesFile | Path to the resources file. |
[in] | logFileName | Path to the log file. |
◆ Application() [2/2]
VGears::Application::Application |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Constructor.
- Parameters
-
[in] | argc | Number of command line arguments. |
[in] | argv | List of command line arguments. |
◆ ~Application()
VGears::Application::~Application |
( |
| ) |
|
|
virtual |
◆ createResourceManagers()
void VGears::Application::createResourceManagers |
( |
void |
| ) |
|
|
protected |
Initializes the resource manager.
◆ destroyComponents()
void VGears::Application::destroyComponents |
( |
void |
| ) |
|
|
protected |
Unloads components.
Unoads the TexCodec component and the resource manager.
◆ destroyResourceManagers()
void VGears::Application::destroyResourceManagers |
( |
void |
| ) |
|
|
protected |
Unloads the resource manager.
◆ getRenderWindow()
Ogre::RenderWindow * VGears::Application::getRenderWindow |
( |
void |
| ) |
|
Retrieves the Ogre main window.
- Returns
- Pointer to the Ogre window.
◆ getResourcesFilename()
const String & VGears::Application::getResourcesFilename |
( |
void |
| ) |
|
Retrieves the Ogre resources file name.
- Returns
- Ogre resource configuration file name.
◆ getRoot()
Ogre::Root * VGears::Application::getRoot |
( |
void |
| ) |
|
Retrieves the Ogre system main component.
- Returns
- Pointer to the Ogre main component.
◆ getWindowTitle()
String VGears::Application::getWindowTitle |
( |
void |
| ) |
const |
|
protected |
Retrieves the main window title.
- Returns
- Th windo title.
◆ initComponents()
void VGears::Application::initComponents |
( |
void |
| ) |
|
|
protected |
Initializes components.
Initializes the TexCodec component and the resource manager.
◆ initOgre()
bool VGears::Application::initOgre |
( |
bool |
hideWindow = false | ) |
|
Initializes the Ogre rendering system.
- Parameters
-
[in] | hideWindow | True to not show the main window, false to show it. |
- Returns
- True if the system was succesfully initiated, false if there were errors or it was already initialized.
◆ loadResourcesConfig()
void VGears::Application::loadResourcesConfig |
( |
void |
| ) |
|
|
protected |
Loads the resource configuration from the file.
◆ processCommandLine()
bool VGears::Application::processCommandLine |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
|
protected |
Processes command line arguments.
- Parameters
-
[in] | argc | Number of command line arguments. |
[in] | argv | List of command line arguments. |
- Returns
- True if all arguments were successfully processed, false on error
◆ registerArchiveFactories()
void VGears::Application::registerArchiveFactories |
( |
void |
| ) |
|
|
protected |
◆ ResMgr()
Ogre::ResourceGroupManager * VGears::Application::ResMgr |
( |
| ) |
|
|
inline |
Retrieves the Ogre resource manager.
- Returns
- Pointer to the Ogre resource manager.
◆ _argc
int VGears::Application::_argc = 0 |
|
private |
Number of arguments assed by command line.
◆ _argv
char** VGears::Application::_argv = nullptr |
|
private |
List of arguments passed by command line.
◆ _initialized
bool VGears::Application::_initialized = false |
|
private |
Flag for initialization status.
◆ _overlay_system
std::unique_ptr<Ogre::OverlaySystem> VGears::Application::_overlay_system |
|
private |
◆ _render_window
Ogre::RenderWindow* VGears::Application::_render_window = nullptr |
|
private |
◆ _resource_managers
List of Ogre resource managers.
◆ _root
std::unique_ptr<Ogre::Root> VGears::Application::_root |
|
private |
◆ CLI_CONFIG_FILE
const char * VGears::Application::CLI_CONFIG_FILE |
|
staticprivate |
String for the command line arguments.
◆ CLI_CONFIG_FILE_DESCRIPTION
const char * VGears::Application::CLI_CONFIG_FILE_DESCRIPTION |
|
staticprivate |
String for the command line help text.
◆ CLI_HELP
const char * VGears::Application::CLI_HELP |
|
staticprivate |
String for the command line arguments.
◆ CLI_HELP_DESCRIPTION
const char * VGears::Application::CLI_HELP_DESCRIPTION |
|
staticprivate |
String for the command line help text.
◆ CLI_LOG_FILE
const char * VGears::Application::CLI_LOG_FILE |
|
staticprivate |
String for the command line arguments.
◆ CLI_LOG_FILE_DESCRIPTION
const char * VGears::Application::CLI_LOG_FILE_DESCRIPTION |
|
staticprivate |
String for the command line help text.
◆ CLI_PLUGINS_FILE
const char * VGears::Application::CLI_PLUGINS_FILE |
|
staticprivate |
String for the command line arguments.
◆ CLI_PLUGINS_FILE_DESCRIPTION
const char * VGears::Application::CLI_PLUGINS_FILE_DESCRIPTION |
|
staticprivate |
String for the command line help text.
◆ CLI_RESOURCES_FILE
const char * VGears::Application::CLI_RESOURCES_FILE |
|
staticprivate |
String for the command line arguments.
◆ CLI_RESOURCES_FILE_DESCRIPTION
const char * VGears::Application::CLI_RESOURCES_FILE_DESCRIPTION |
|
staticprivate |
String for the command line help text.
◆ CLI_SECTION_GENERIC
const char * VGears::Application::CLI_SECTION_GENERIC |
|
staticprivate |
String for the command line help text.
◆ config_filename_
String VGears::Application::config_filename_ |
|
private |
Path to the configuration file.
◆ log_filename_
String VGears::Application::log_filename_ |
|
private |
◆ plugins_filename_
String VGears::Application::plugins_filename_ |
|
private |
Path to the plugin configuration file.
◆ res_mgr_
Ogre::ResourceGroupManager* VGears::Application::res_mgr_ = nullptr |
|
private |
Ogre resource group manager.
◆ resources_filename_
String VGears::Application::resources_filename_ |
|
private |
Path to the resource configuration file.
The documentation for this class was generated from the following files: