Initial claude dump
This commit is contained in:
@@ -1,25 +1,31 @@
|
||||
#pragma once
|
||||
|
||||
#include <glm/glm.hpp>
|
||||
#include <sophia/entity.hpp>
|
||||
#include <sophia/frame_info.hpp>
|
||||
#include <sophia/handles.hpp>
|
||||
#include <sophia/ui/panel.hpp>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
class InspectorPanel : public sophia::Panel {
|
||||
public:
|
||||
InspectorPanel() : Panel{{.name = "Inspector"}} {}
|
||||
// Stand-in for an asset browser: the textures a sprite can pick from.
|
||||
using TextureList =
|
||||
std::vector<std::pair<std::string, sophia::TextureHandle>>;
|
||||
|
||||
InspectorPanel(sophia::Entity& selected, const TextureList& textures)
|
||||
: Panel{{.name = "Inspector"}}, selected{selected}, textures{textures} {}
|
||||
|
||||
void onUpdate(const sophia::FrameInfo& frameInfo) override;
|
||||
|
||||
private:
|
||||
std::string name = "Player";
|
||||
std::string tag = "Player";
|
||||
void drawTag();
|
||||
void drawTransform();
|
||||
void drawCamera();
|
||||
void drawSprite();
|
||||
void drawAddComponent();
|
||||
|
||||
glm::vec3 position{0.0f, 1.0f, 0.0f};
|
||||
glm::vec3 rotation{0.0f, 0.0f, 0.0f};
|
||||
glm::vec3 scale{1.0f, 1.0f, 1.0f};
|
||||
|
||||
std::string meshName = "player_capsule.fbx";
|
||||
std::string materialName = "player_mat";
|
||||
std::string scriptName = "PlayerController.lua";
|
||||
sophia::Entity& selected;
|
||||
const TextureList& textures;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user