Maria GDK 5.0.0.738
Documentation of native code in develop branch
Loading...
Searching...
No Matches
STK::TextureLoader Class Reference

#include <StkTextureLoader.h>

Public Member Functions

void addLoadRequest (const std::shared_ptr< Texture > &tex)
 Add a texture to the loader queue.
 
void stopLoader ()
 Stop the texture loader.
 
bool needsRedraw () const
 
void setNeedsRedraw (bool needs_redraw)
 
void startLoader ()
 Start the texture loader.
 

Protected Member Functions

void loaderThread ()
 

Protected Attributes

std::list< std::shared_ptr< Texture > > textures_
 
std::unique_ptr< std::thread > loader_thread_
 
std::condition_variable new_request_
 
std::mutex mutex_
 
bool stop_ {false}
 
std::atomic< int > num_reqs_ {0}
 
std::atomic< bool > needs_redraw_ {false}
 

Detailed Description

TextureLoader - Short description. Detailed description.


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