Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
esengine::RenderThread Class Reference

#include <RenderThread.hpp>

Public Types

using Fence = std::uint64_t

Public Member Functions

bool start (const char *=nullptr)
void stop ()
bool enabled () const
bool isOwner () const
Fence enqueue (std::function< void()> fn)
Fence fence ()
bool complete (Fence value) const
void wait (Fence)
void finishFrame (std::function< void()> fn)
void flush ()
template<class F>
decltype(auto) invoke (F &&fn)

Detailed Description

Definition at line 24 of file RenderThread.hpp.

Member Typedef Documentation

◆ Fence

using esengine::RenderThread::Fence = std::uint64_t

Definition at line 26 of file RenderThread.hpp.

Member Function Documentation

◆ complete()

bool esengine::RenderThread::complete ( Fence value) const
inline

Definition at line 85 of file RenderThread.hpp.

Referenced by esengine::renderThread_complete().

◆ enabled()

bool esengine::RenderThread::enabled ( ) const
inline

Definition at line 81 of file RenderThread.hpp.

Referenced by esengine::renderThread_enabled().

◆ enqueue()

Fence esengine::RenderThread::enqueue ( std::function< void()> fn)
inline

Definition at line 83 of file RenderThread.hpp.

Referenced by esengine::renderThread_resizeSurface().

◆ fence()

Fence esengine::RenderThread::fence ( )
inline

Definition at line 84 of file RenderThread.hpp.

Referenced by esengine::renderThread_fence().

◆ finishFrame()

void esengine::RenderThread::finishFrame ( std::function< void()> fn)
inline

Definition at line 87 of file RenderThread.hpp.

◆ flush()

void esengine::RenderThread::flush ( )
inline

Definition at line 88 of file RenderThread.hpp.

Referenced by esengine::renderThread_flush().

◆ invoke()

template<class F>
decltype(auto) esengine::RenderThread::invoke ( F && fn)
inline

Definition at line 89 of file RenderThread.hpp.

Referenced by esengine::startRenderThread().

◆ isOwner()

bool esengine::RenderThread::isOwner ( ) const
inline

Definition at line 82 of file RenderThread.hpp.

Referenced by esengine::initRendererWebGPU().

◆ start()

bool esengine::RenderThread::start ( const char * = nullptr)
inline

Definition at line 79 of file RenderThread.hpp.

◆ stop()

void esengine::RenderThread::stop ( )
inline

Definition at line 80 of file RenderThread.hpp.

◆ wait()

void esengine::RenderThread::wait ( Fence )
inline

Definition at line 86 of file RenderThread.hpp.


The documentation for this class was generated from the following file:
  • /home/runner/work/estella/estella/src/esengine/renderer/frame/RenderThread.hpp