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

#include <gAssetLoader.h>

Inheritance diagram for gAssetLoader:
Collaboration diagram for gAssetLoader:

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
 

Constructor & Destructor Documentation

◆ gAssetLoader()

gAssetLoader::gAssetLoader ( )

◆ ~gAssetLoader()

virtual gAssetLoader::~gAssetLoader ( )
virtual

Member Function Documentation

◆ getCounter()

int gAssetLoader::getCounter ( )

◆ getLoadedAssetNum()

int gAssetLoader::getLoadedAssetNum ( )

◆ getSignal()

short gAssetLoader::getSignal ( )

◆ isUpdateNeeded()

bool gAssetLoader::isUpdateNeeded ( )

◆ load()

void gAssetLoader::load ( gImage image,
std::string  fullPath,
short  signal = SIGNAL_NONE 
)

◆ loadImage()

void gAssetLoader::loadImage ( gImage image,
std::string  imagePath,
short  signal = SIGNAL_NONE 
)

◆ reset()

void gAssetLoader::reset ( )

◆ resetSignal()

void gAssetLoader::resetSignal ( )

◆ threadFunction()

void gAssetLoader::threadFunction ( )
virtual

Reimplemented from gThread.

◆ update()

void gAssetLoader::update ( )

Member Data Documentation

◆ SIGNAL_NONE

const short gAssetLoader::SIGNAL_NONE = 0
static

◆ TYPE_FONT

const int gAssetLoader::TYPE_FONT = 3
static

◆ TYPE_IMAGE

const int gAssetLoader::TYPE_IMAGE = 0
static

◆ TYPE_MODEL

const int gAssetLoader::TYPE_MODEL = 2
static

◆ TYPE_SOUND

const int gAssetLoader::TYPE_SOUND = 4
static

◆ TYPE_TEXTURE

const int gAssetLoader::TYPE_TEXTURE = 1
static

The documentation for this class was generated from the following file: