|
GlistEngine
|
#include <gAssetLoader.h>


Public Member Functions | |
| gAssetLoader () | |
| virtual | ~gAssetLoader () |
| void | load (gImage &image, std::string fullPath, short signal=SIGNAL_NONE) |
| void | loadImage (gImage &image, std::string imagePath, short signal=SIGNAL_NONE) |
| void | threadFunction () |
| int | getLoadedAssetNum () |
| short | getSignal () |
| void | resetSignal () |
| int | getCounter () |
| void | reset () |
| bool | isUpdateNeeded () |
| void | update () |
Public Member Functions inherited from gThread | |
| gThread () | |
| virtual | ~gThread () |
| std::thread::id | getId () const |
| bool | isRunning () |
| bool | isCurrent () |
| bool | isDone () |
| std::thread & | getThread () |
| void | start () |
| void | stop () |
| bool | lock () |
| bool | tryLock () |
| void | unlock () |
| void | wait () |
| void | sleep (std::chrono::duration< double, std::milli > milliseconds) |
| void | sleep (double milliseconds) |
| void | yield () |
| void | detach () |
Public Member Functions inherited from gObject | |
| 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 Attributes | |
| static const short | SIGNAL_NONE = 0 |
| static const int | TYPE_IMAGE = 0 |
| static const int | TYPE_TEXTURE = 1 |
| static const int | TYPE_MODEL = 2 |
| static const int | TYPE_FONT = 3 |
| static const int | TYPE_SOUND = 4 |
Static Public Attributes inherited from gObject | |
| 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 |
Additional Inherited Members | |
Static Public Member Functions inherited from gObject | |
| 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) |
Protected Attributes inherited from gThread | |
| std::condition_variable | conditionvariable |
| std::mutex | mutex |
| bool | isdone |
| bool | isrunning |
Static Protected Attributes inherited from gObject | |
| static int | renderpassnum |
| static int | renderpassno |
| static int | releasescaling |
| static int | releaseresolution |
| gAssetLoader::gAssetLoader | ( | ) |
|
virtual |
| int gAssetLoader::getCounter | ( | ) |
| int gAssetLoader::getLoadedAssetNum | ( | ) |
| short gAssetLoader::getSignal | ( | ) |
| bool gAssetLoader::isUpdateNeeded | ( | ) |
| void gAssetLoader::load | ( | gImage & | image, |
| std::string | fullPath, | ||
| short | signal = SIGNAL_NONE |
||
| ) |
| void gAssetLoader::loadImage | ( | gImage & | image, |
| std::string | imagePath, | ||
| short | signal = SIGNAL_NONE |
||
| ) |
| void gAssetLoader::reset | ( | ) |
| void gAssetLoader::resetSignal | ( | ) |
|
virtual |
Reimplemented from gThread.
| void gAssetLoader::update | ( | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |