Monad Engine da02fba2
> Undercity Codex_
Loading...
Searching...
No Matches
mnd::RenderCommand Struct Reference

One draw call unit: a Mesh + Material + world-space transform. More...

#include <RenderQueue.h>

+ Collaboration diagram for mnd::RenderCommand:

Public Attributes

Meshmesh = nullptr
 Geometry to draw (non-owning raw pointer).
 
Materialmaterial = nullptr
 Surface definition (non-owning raw pointer).
 
mat4 modelMatrix
 Object → World transform for this draw call.
 

Detailed Description

One draw call unit: a Mesh + Material + world-space transform.

Submitted by application code each frame. The RenderQueue processes it during Draw() by binding the material, uploading the model matrix as a uniform, binding the mesh, and calling GraphicsAPI::DrawMesh().

Definition at line 43 of file RenderQueue.h.

Member Data Documentation

◆ material

Material* mnd::RenderCommand::material = nullptr

Surface definition (non-owning raw pointer).

Definition at line 46 of file RenderQueue.h.

Referenced by mnd::RenderQueue::Submit(), mnd::MeshComponent::Update(), and mnd::SkinnedMeshComponent::Update().

◆ mesh

Mesh* mnd::RenderCommand::mesh = nullptr

Geometry to draw (non-owning raw pointer).

Definition at line 45 of file RenderQueue.h.

Referenced by mnd::RenderQueue::Submit(), mnd::MeshComponent::Update(), and mnd::SkinnedMeshComponent::Update().

◆ modelMatrix

mat4 mnd::RenderCommand::modelMatrix

Object → World transform for this draw call.

Definition at line 47 of file RenderQueue.h.

Referenced by mnd::MeshComponent::Update(), and mnd::SkinnedMeshComponent::Update().


The documentation for this struct was generated from the following file: