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

#include <RenderTarget.hpp>

Public Types

using Handle = u32

Public Member Functions

 RenderTargetManager ()=default
 ~RenderTargetManager ()=default
void setDevice (GfxDevice &device)
 Binds the device used to create render targets. Call once at setup.
Handle create (u32 width, u32 height, bool depth=true, bool linearFilter=false, bool floatColor=false)
RenderTarget * get (Handle handle)
void release (Handle handle)
bool isValid (Handle handle) const

Static Public Attributes

static constexpr Handle INVALID_HANDLE = 0

Detailed Description

Definition at line 50 of file RenderTarget.hpp.

Member Typedef Documentation

◆ Handle

Definition at line 52 of file RenderTarget.hpp.

Constructor & Destructor Documentation

◆ RenderTargetManager()

esengine::RenderTargetManager::RenderTargetManager ( )
default

◆ ~RenderTargetManager()

esengine::RenderTargetManager::~RenderTargetManager ( )
default

Member Function Documentation

◆ create()

RenderTargetManager::Handle esengine::RenderTargetManager::create ( u32 width,
u32 height,
bool depth = true,
bool linearFilter = false,
bool floatColor = false )

Definition at line 70 of file RenderTarget.cpp.

References esengine::makeUnique().

◆ get()

RenderTarget * esengine::RenderTargetManager::get ( Handle handle)

Definition at line 92 of file RenderTarget.cpp.

References INVALID_HANDLE.

◆ isValid()

bool esengine::RenderTargetManager::isValid ( Handle handle) const

Definition at line 112 of file RenderTarget.cpp.

References INVALID_HANDLE.

◆ release()

void esengine::RenderTargetManager::release ( Handle handle)

Definition at line 99 of file RenderTarget.cpp.

References INVALID_HANDLE.

◆ setDevice()

void esengine::RenderTargetManager::setDevice ( GfxDevice & device)
inline

Binds the device used to create render targets. Call once at setup.

Definition at line 59 of file RenderTarget.hpp.

Member Data Documentation

◆ INVALID_HANDLE

Handle esengine::RenderTargetManager::INVALID_HANDLE = 0
staticconstexpr

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