#include <gObject.h>
|
| | gObject () |
| |
| void | logi (std::string message) |
| |
| void | logd (std::string message) |
| |
| void | logw (std::string message) |
| |
| void | loge (std::string message) |
| |
| void | logi (std::string tag, std::string message) |
| |
| void | logd (std::string tag, std::string message) |
| |
| void | logw (std::string tag, std::string message) |
| |
| void | loge (std::string tag, std::string message) |
| |
◆ gObject()
◆ gGetAppDir()
| static std::string gObject::gGetAppDir |
( |
| ) |
|
|
static |
Gives the path to the project folder.
- Returns
- The location of the project folder.
◆ gGetAssetsDir()
| static std::string gObject::gGetAssetsDir |
( |
| ) |
|
|
static |
Gives the path to the assets folder.
- Returns
- The location of the project’s assets folder.
◆ gGetDatabasesDir()
| static std::string gObject::gGetDatabasesDir |
( |
| ) |
|
|
static |
Gives the path to the databases folder.
- Returns
- The location of the databases folder in the project.
◆ gGetFilesDir()
| static std::string gObject::gGetFilesDir |
( |
| ) |
|
|
static |
Gives the path to the files folder.
- Returns
- The location of the files folder in the project.
◆ gGetFontsDir()
| static std::string gObject::gGetFontsDir |
( |
| ) |
|
|
static |
Gives the path to the fonts folder.
- Returns
- The location of the fonts folder in the project.
◆ gGetImagesDir()
| static std::string gObject::gGetImagesDir |
( |
| ) |
|
|
static |
Gives the path to the image folder.
- Returns
- The location of the images folder in the project.
◆ gGetModelsDir()
| static std::string gObject::gGetModelsDir |
( |
| ) |
|
|
static |
Gives the path to the models folder.
- Returns
- The location of the models folder in the project.
◆ gGetShadersDir()
| static std::string gObject::gGetShadersDir |
( |
| ) |
|
|
static |
Gives the path to the shaders folder.
- Returns
- The location of the shaders folder in the project.
◆ gGetSoundsDir()
| static std::string gObject::gGetSoundsDir |
( |
| ) |
|
|
static |
Gives the path to the sounds folder.
- Returns
- The location of the sounds folder in the project.
◆ gGetTexturesDir()
| static std::string gObject::gGetTexturesDir |
( |
| ) |
|
|
static |
Gives the path to the textures folder.
- Returns
- The location of the textures folder in the project.
◆ gGetVideosDir()
| static std::string gObject::gGetVideosDir |
( |
| ) |
|
|
static |
◆ gSetAssetsDir()
| static void gObject::gSetAssetsDir |
( |
std::string |
assetsDir | ) |
|
|
static |
Sets the given folder as new assets dir. The new folder can be anywhere in the device. This function gives the ability of using the same assets folder to multiple GlistApps.
All sub asset folders, ie.files, images, sounds, databases.., are defined relative to main assets folder. That means, all sub asset folders will change automatically, in conjunction with main assets folder path.
- Parameters
-
| assetsDir | New assets folder |
◆ logd() [1/2]
| void gObject::logd |
( |
std::string |
message | ) |
|
Prints the given message to the console. It has [DEBUG] at the beginning. It also prints which class it is used in.
- Parameters
-
| message | The desired output. It should be a string. |
◆ logd() [2/2]
| void gObject::logd |
( |
std::string |
tag, |
|
|
std::string |
message |
|
) |
| |
Prints the given message to the console. It has [DEBUG] at the beginning.
- Parameters
-
| tag | Reminder tag suitable for the place used. It should be a string. |
| message | The desired output. It should be a string. |
◆ loge() [1/2]
| void gObject::loge |
( |
std::string |
message | ) |
|
Prints the given message to the console. It has [ERROR] at the beginning. It also prints which class it is used in. It gives yellow output.
- Parameters
-
| message | The desired output. It should be a string. |
◆ loge() [2/2]
| void gObject::loge |
( |
std::string |
tag, |
|
|
std::string |
message |
|
) |
| |
Prints the given message to the console. It has [ERROR] at the beginning. It gives yellow output.
- Parameters
-
| tag | Reminder tag suitable for the place used. It should be a string. |
| message | The desired output. It should be a string. |
◆ logi() [1/2]
| void gObject::logi |
( |
std::string |
message | ) |
|
Prints the given message to the console. It has [INFO] at the beginning. It also prints which class it is used in.
- Parameters
-
| message | The desired output. It should be a string. |
◆ logi() [2/2]
| void gObject::logi |
( |
std::string |
tag, |
|
|
std::string |
message |
|
) |
| |
Prints the given message to the console. It has [INFO] at the beginning.
- Parameters
-
| tag | Reminder tag suitable for the place used. It should be a string. |
| message | The desired output. It should be a string. |
◆ logw() [1/2]
| void gObject::logw |
( |
std::string |
message | ) |
|
Prints the given message to the console. It has [WARNING] at the beginning. It also prints which class it is used in.
- Parameters
-
| message | The desired output. It should be a string. |
◆ logw() [2/2]
| void gObject::logw |
( |
std::string |
tag, |
|
|
std::string |
message |
|
) |
| |
Prints the given message to the console. It has [WARNING] at the beginning.
- Parameters
-
| tag | Reminder tag suitable for the place used. It should be a string. |
| message | The desired output. It should be a string. |
◆ setCurrentResolution()
| static void gObject::setCurrentResolution |
( |
int |
scalingNo, |
|
|
int |
currentResolutionNo |
|
) |
| |
|
static |
◆ LOGLEVEL_DEBUG
| const int gObject::LOGLEVEL_DEBUG |
|
static |
◆ LOGLEVEL_ERROR
| const int gObject::LOGLEVEL_ERROR |
|
static |
◆ LOGLEVEL_INFO
| const int gObject::LOGLEVEL_INFO |
|
static |
◆ LOGLEVEL_SILENT
| const int gObject::LOGLEVEL_SILENT |
|
static |
◆ LOGLEVEL_WARNING
| const int gObject::LOGLEVEL_WARNING |
|
static |
◆ releaseresolution
| int gObject::releaseresolution |
|
staticprotected |
◆ releasescaling
| int gObject::releasescaling |
|
staticprotected |
◆ renderpassno
| int gObject::renderpassno |
|
staticprotected |
◆ renderpassnum
| int gObject::renderpassnum |
|
staticprotected |
The documentation for this class was generated from the following file: