ADD: planet prototype

This commit is contained in:
2025-12-28 00:01:44 +09:00
parent c92a8e6e0b
commit ea2b2c457c
8 changed files with 405 additions and 7 deletions

View File

@@ -12,6 +12,7 @@
#include "scene/vk_loader.h"
class EngineContext;
class PlanetSystem;
struct RenderObject
{
@@ -61,6 +62,7 @@ struct DrawContext
class SceneManager
{
public:
SceneManager();
~SceneManager();
void init(EngineContext *context);
@@ -223,6 +225,8 @@ public:
const PickingDebug &getPickingDebug() const { return pickingDebug; }
PlanetSystem *get_planet_system() const { return _planetSystem.get(); }
// Returns the LoadedGLTF scene for a named GLTF instance, or nullptr if not found.
std::shared_ptr<LoadedGLTF> getGLTFInstanceScene(const std::string &instanceName) const;
@@ -252,5 +256,7 @@ private:
// GPU resources that might still be in-flight.
std::vector<std::shared_ptr<LoadedGLTF>> pendingGLTFRelease;
std::unique_ptr<PlanetSystem> _planetSystem;
PickingDebug pickingDebug{};
};