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

Non-indexed draw command with its vertex and constant buffers. More...

#include <RenderCommands.hpp>

Inheritance diagram for Sleak::RenderEngine::DrawCommand:

Public Member Functions

 DrawCommand (RefPtr< BufferBase > vertexBuffer, List< RefPtr< BufferBase > > constantBuffers, uint32_t vertexCount, uint32_t startVertexLocation=0)
void Execute (RenderContext *context) override
 Replays this command into the main forward/deferred pass.
void ExecuteShadow (RenderContext *context) override
CommandType GetType () const override
bool IsSkinned () const override
Public Member Functions inherited from Sleak::RenderEngine::RenderCommandBase
virtual ~RenderCommandBase ()=default
bool CastsShadow () const
uint32_t GetOwnerObjectID () const
void SetCastsShadow (bool v)
void SetOwnerObjectID (uint32_t id)

Detailed Description

Non-indexed draw command with its vertex and constant buffers.

Definition at line 73 of file RenderCommands.hpp.

Constructor & Destructor Documentation

◆ DrawCommand()

Sleak::RenderEngine::DrawCommand::DrawCommand ( RefPtr< BufferBase > vertexBuffer,
List< RefPtr< BufferBase > > constantBuffers,
uint32_t vertexCount,
uint32_t startVertexLocation = 0 )

Definition at line 13 of file RenderCommands.cpp.

Member Function Documentation

◆ Execute()

void Sleak::RenderEngine::DrawCommand::Execute ( RenderContext * context)
overridevirtual

Replays this command into the main forward/deferred pass.

Implements Sleak::RenderEngine::RenderCommandBase.

Definition at line 21 of file RenderCommands.cpp.

◆ ExecuteShadow()

void Sleak::RenderEngine::DrawCommand::ExecuteShadow ( RenderContext * context)
overridevirtual

Reimplemented from Sleak::RenderEngine::RenderCommandBase.

Definition at line 30 of file RenderCommands.cpp.

◆ GetType()

CommandType Sleak::RenderEngine::DrawCommand::GetType ( ) const
inlineoverridevirtual

Implements Sleak::RenderEngine::RenderCommandBase.

Definition at line 82 of file RenderCommands.hpp.

◆ IsSkinned()

bool Sleak::RenderEngine::DrawCommand::IsSkinned ( ) const
overridevirtual

Reimplemented from Sleak::RenderEngine::RenderCommandBase.

Definition at line 41 of file RenderCommands.cpp.