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

Indexed draw command with its vertex, index, and constant buffers. More...

#include <RenderCommands.hpp>

Inheritance diagram for Sleak::RenderEngine::DrawIndexedCommand:

Public Member Functions

 DrawIndexedCommand (RefPtr< BufferBase > vertexBuffer, RefPtr< BufferBase > indexBuffer, List< RefPtr< BufferBase > > constantBuffers, uint32_t indexCount, uint32_t startIndexLocation=0, int32_t baseVertexLocation=0)
void Execute (RenderContext *context) override
 Binds buffers, routes bone data through the skinned pipeline when present, then draws.
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

Indexed draw command with its vertex, index, and constant buffers.

Definition at line 94 of file RenderCommands.hpp.

Constructor & Destructor Documentation

◆ DrawIndexedCommand()

Sleak::RenderEngine::DrawIndexedCommand::DrawIndexedCommand ( RefPtr< BufferBase > vertexBuffer,
RefPtr< BufferBase > indexBuffer,
List< RefPtr< BufferBase > > constantBuffers,
uint32_t indexCount,
uint32_t startIndexLocation = 0,
int32_t baseVertexLocation = 0 )

Definition at line 48 of file RenderCommands.cpp.

Member Function Documentation

◆ Execute()

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

Binds buffers, routes bone data through the skinned pipeline when present, then draws.

Implements Sleak::RenderEngine::RenderCommandBase.

Definition at line 62 of file RenderCommands.cpp.

◆ ExecuteShadow()

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

Reimplemented from Sleak::RenderEngine::RenderCommandBase.

Definition at line 91 of file RenderCommands.cpp.

◆ GetType()

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

Implements Sleak::RenderEngine::RenderCommandBase.

Definition at line 104 of file RenderCommands.hpp.

◆ IsSkinned()

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

Reimplemented from Sleak::RenderEngine::RenderCommandBase.

Definition at line 103 of file RenderCommands.cpp.