Tramway SDK
Namespaces | Functions
async.h File Reference
#include <cmath>

Go to the source code of this file.

Namespaces

namespace  tram
 
namespace  tram::Async
 

Functions

void tram::Async::RequestResource (EntityComponent *requester, Resource *resource)
 Adds a resource to the loading queue. More...
 
void tram::Async::CancelRequest (EntityComponent *requester, Resource *resource)
 Cancels a resource load request. More...
 
void tram::Async::LoadDependency (Resource *res)
 Loads a resource from disk, skipping the queue. More...
 
void tram::Async::Init (size_t threads)
 Starts the async resource loader thread. More...
 
void tram::Async::Yeet ()
 Stops the async resource loader thread. More...
 
void tram::Async::LoadResourcesFromDisk ()
 Processes the first resource queue. More...
 
void tram::Async::LoadResourcesFromMemory ()
 Processes the second resource queue. More...
 
void tram::Async::FinishResources ()
 Notifies EntityComponents about finished resources. More...
 
size_t tram::Async::GetWaitingResources ()
 Returns number of resources in queues. More...