#include <RenderThread.hpp>
Inherits ThreadLoop.
Public Member Functions | |
RenderThread (Editor *editor) | |
void | render (const std::vector< Camera > &cameraList) |
virtual bool | next () |
Public Member Functions inherited from ThreadLoop | |
ThreadLoop () | |
virtual | ~ThreadLoop () |
void | setCallback (ThreadCallbackInterface *callback) |
void | create () |
void | start () |
void | cancel () |
void | stop () |
void | wait () |
bool | running () |
Protected Attributes | |
Editor * | editor_ |
std::vector< Camera > | cameraList_ |
bool | initialized_ |
Protected Attributes inherited from ThreadLoop | |
std::shared_ptr< std::thread > | thread_ |
ThreadCallbackInterface * | callback_ |
std::mutex | mutex_ |
std::condition_variable | condition_ |
State | state_ |
bool | finished_ |
bool | waiting_ |
std::mutex | mutexCaller_ |
std::condition_variable | conditionCaller_ |
bool | received_ |
Additional Inherited Members | |
Protected Types inherited from ThreadLoop | |
enum | State { STATE_RUN , STATE_CANCEL , STATE_EXIT } |
Protected Member Functions inherited from ThreadLoop | |
void | setState (State state) |
void | runLoop () |
RenderThread::RenderThread | ( | Editor * | editor | ) |
|
virtual |
Implements ThreadLoop.
void RenderThread::render | ( | const std::vector< Camera > & | cameraList | ) |
Referenced by MainWindow::slotRenderViewport(), and MainWindow::slotRenderViewports().