SAGE
A Simple Academic Game Engine
Loading...
Searching...
No Matches
SageLoadingThread.h File Reference

Header for the class CLoadingThread.

#include <vector>
#include <string>
#include "SageComponent.h"
#include "SageComponentIncludes.h"
#include "SageMediaDesc.h"
Include dependency graph for SageLoadingThread.h:
This graph shows which files directly or indirectly include this file:

Classes

class  Sage::CLoadingThread< t >
 A thread class for loading images and sounds. More...
 

Functions

template<typename t >
void Sage::StartLoadingThread (CSpriteRenderer *pRenderer, CMediaList< t > m, bool *pFlag)
 Spawn an image loading thread.
 
template<typename t >
void Sage::StartLoadingThread (CSound *pAudio, CMediaList< t > m, bool *pFlag)
 Spawn a sound loading thread.
 

Function Documentation

◆ StartLoadingThread() [1/2]

template<typename t >
void Sage::StartLoadingThread ( CSound * pAudio,
CMediaList< t > m,
bool * pFlag )

Spawn and detach a sound processing thread. Detaching the thread means that we don't have to keep track of its handle.

Template Parameters
tEnumerated type for sounds.
Parameters
pAudioPointer to an audio player.
mA media descriptor list.
pFlagPointer to a flag to set when finished.
Here is the call graph for this function:

◆ StartLoadingThread() [2/2]

template<typename t >
void Sage::StartLoadingThread ( CSpriteRenderer * pRenderer,
CMediaList< t > m,
bool * pFlag )

Spawn and detach an image processing thread. Detaching the thread means that we don't have to keep track of its handle.

Template Parameters
tEnumerated type for images.
Parameters
pRendererPointer to a sprite renderer.
mA media descriptor list.
pFlagPointer to a flag to set when finished.
Here is the call graph for this function:
Here is the caller graph for this function: