ADD: Bounding, Some error

This commit is contained in:
2025-11-18 13:53:02 +09:00
parent 94ba704f99
commit 6e0e86b683
9 changed files with 204 additions and 423 deletions

View File

@@ -3,6 +3,7 @@
#include <scene/camera.h>
#include <unordered_map>
#include <memory>
#include <optional>
#include <glm/vec2.hpp>
#include "scene/vk_loader.h"
@@ -75,10 +76,12 @@ public:
{
std::shared_ptr<MeshAsset> mesh;
glm::mat4 transform{1.f};
std::optional<BoundsType> boundsTypeOverride;
};
void addMeshInstance(const std::string &name, std::shared_ptr<MeshAsset> mesh,
const glm::mat4 &transform = glm::mat4(1.f));
const glm::mat4 &transform = glm::mat4(1.f),
std::optional<BoundsType> boundsType = {});
bool removeMeshInstance(const std::string &name);
void clearMeshInstances();