GlistEngine
Loading...
Searching...
No Matches
gObject Class Reference

#include <gObject.h>

Inheritance diagram for gObject:

Public Member Functions

 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)

Static Public Member Functions

static std::string gGetAppDir ()
static std::string gGetAssetsDir ()
static void gSetAssetsDir (std::string assetsDir)
static std::string gGetFilesDir ()
static std::string gGetImagesDir ()
static std::string gGetFontsDir ()
static std::string gGetModelsDir ()
static std::string gGetTexturesDir ()
static std::string gGetShadersDir ()
static std::string gGetSoundsDir ()
static std::string gGetDatabasesDir ()
static std::string gGetVideosDir ()
static void setCurrentResolution (int scalingNo, int currentResolutionNo)

Static Public Attributes

static const int LOGLEVEL_SILENT
static const int LOGLEVEL_DEBUG
static const int LOGLEVEL_INFO
static const int LOGLEVEL_WARNING
static const int LOGLEVEL_ERROR

Static Protected Attributes

static int renderpassnum
static int renderpassno
static int releasescaling
static int releaseresolution

Constructor & Destructor Documentation

◆ gObject()

gObject::gObject ( )

Member Function Documentation

◆ gGetAppDir()

std::string gObject::gGetAppDir ( )
static

Gives the path to the project folder.

Returns
The location of the project folder.

◆ gGetAssetsDir()

std::string gObject::gGetAssetsDir ( )
static

Gives the path to the assets folder.

Returns
The location of the project’s assets folder.

◆ gGetDatabasesDir()

std::string gObject::gGetDatabasesDir ( )
static

Gives the path to the databases folder.

Returns
The location of the databases folder in the project.

◆ gGetFilesDir()

std::string gObject::gGetFilesDir ( )
static

Gives the path to the files folder.

Returns
The location of the files folder in the project.

◆ gGetFontsDir()

std::string gObject::gGetFontsDir ( )
static

Gives the path to the fonts folder.

Returns
The location of the fonts folder in the project.

◆ gGetImagesDir()

std::string gObject::gGetImagesDir ( )
static

Gives the path to the image folder.

Returns
The location of the images folder in the project.

◆ gGetModelsDir()

std::string gObject::gGetModelsDir ( )
static

Gives the path to the models folder.

Returns
The location of the models folder in the project.

◆ gGetShadersDir()

std::string gObject::gGetShadersDir ( )
static

Gives the path to the shaders folder.

Returns
The location of the shaders folder in the project.

◆ gGetSoundsDir()

std::string gObject::gGetSoundsDir ( )
static

Gives the path to the sounds folder.

Returns
The location of the sounds folder in the project.

◆ gGetTexturesDir()

std::string gObject::gGetTexturesDir ( )
static

Gives the path to the textures folder.

Returns
The location of the textures folder in the project.

◆ gGetVideosDir()

std::string gObject::gGetVideosDir ( )
static

◆ gSetAssetsDir()

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
assetsDirNew 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
messageThe 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
tagReminder tag suitable for the place used. It should be a string.
messageThe 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
messageThe 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
tagReminder tag suitable for the place used. It should be a string.
messageThe 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
messageThe 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
tagReminder tag suitable for the place used. It should be a string.
messageThe 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
messageThe 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
tagReminder tag suitable for the place used. It should be a string.
messageThe desired output. It should be a string.

◆ setCurrentResolution()

void gObject::setCurrentResolution ( int scalingNo,
int currentResolutionNo )
static

Member Data Documentation

◆ 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: