Files
Destrum/destrum/include/destrum/Graphics/MeshDrawCommand.h
T
2026-10-23 20:53:56 +02:00

34 lines
722 B
C++

#ifndef MESHDRAWCOMMAND_H
#define MESHDRAWCOMMAND_H
#include <glm/mat4x4.hpp>
#include <destrum/Graphics/ids.h>
#include <destrum/Graphics/Frustum.h>
#include <destrum/Graphics/Resources/Mesh.h>
struct MeshDrawCommand {
MeshID meshId{NULL_MESH_ID};
glm::mat4 transformMatrix{1.0f};
// for frustum culling
Sphere worldBoundingSphere{};
// If set - mesh will be drawn with overrideMaterialId
// instead of whatever material the mesh has
MaterialID materialId{NULL_MATERIAL_ID};
bool castShadow{true};
// skinned meshes only
const SkinnedMesh* skinnedMesh{nullptr};
std::uint32_t jointMatricesStartIndex{0};
std::uint32_t objectId{0};
};
#endif //MESHDRAWCOMMAND_H