![]() |
Maria GDK 5.0.0.927
Documentation of native code in develop branch
|
#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} |
TextureLoader - Short description. Detailed description.