SleakEngine 1.0.0
C++23 multi-backend game engine
Loading...
Searching...
No Matches
Sleak::RenderEngine::RenderCommandBase Class Referenceabstract

One recorded draw plus the state it needs to replay into a command list. More...

#include <RenderCommands.hpp>

Inheritance diagram for Sleak::RenderEngine::RenderCommandBase:

Public Member Functions

virtual ~RenderCommandBase ()=default
bool CastsShadow () const
virtual void Execute (RenderContext *context)=0
 Replays this command into the main forward/deferred pass.
virtual void ExecuteShadow (RenderContext *context)
uint32_t GetOwnerObjectID () const
virtual CommandType GetType () const =0
virtual bool IsSkinned () const
void SetCastsShadow (bool v)
void SetOwnerObjectID (uint32_t id)

Detailed Description

One recorded draw plus the state it needs to replay into a command list.

Definition at line 50 of file RenderCommands.hpp.

Constructor & Destructor Documentation

◆ ~RenderCommandBase()

virtual Sleak::RenderEngine::RenderCommandBase::~RenderCommandBase ( )
virtualdefault

Member Function Documentation

◆ CastsShadow()

bool Sleak::RenderEngine::RenderCommandBase::CastsShadow ( ) const
inline

Definition at line 65 of file RenderCommands.hpp.

◆ Execute()

◆ ExecuteShadow()

virtual void Sleak::RenderEngine::RenderCommandBase::ExecuteShadow ( RenderContext * context)
inlinevirtual

◆ GetOwnerObjectID()

uint32_t Sleak::RenderEngine::RenderCommandBase::GetOwnerObjectID ( ) const
inline

Definition at line 60 of file RenderCommands.hpp.

◆ GetType()

◆ IsSkinned()

virtual bool Sleak::RenderEngine::RenderCommandBase::IsSkinned ( ) const
inlinevirtual

◆ SetCastsShadow()

void Sleak::RenderEngine::RenderCommandBase::SetCastsShadow ( bool v)
inline

Definition at line 64 of file RenderCommands.hpp.

◆ SetOwnerObjectID()

void Sleak::RenderEngine::RenderCommandBase::SetOwnerObjectID ( uint32_t id)
inline

Definition at line 59 of file RenderCommands.hpp.