NoJobEngine 2.0.7
Loading...
Searching...
No Matches
ProjectPanel.h
Go to the documentation of this file.
1
6#pragma once
7
9#include <filesystem>
10#include <functional>
11#include <memory>
12#include <string>
13
14namespace NoJob
15{
16 class Scene;
17 class Mesh;
18 class Material;
19
21 {
22 public:
23 using LogFunction = std::function<void(std::string)>;
24 using CreateModelFunction = std::function<void(const std::filesystem::path&)>;
25
26 void Initialize();
27 void Draw(Scene* scene,
28 Entity& selectedEntity,
29 const std::shared_ptr<Mesh>& defaultCubeMesh,
30 const std::shared_ptr<Material>& defaultCubeMaterial,
31 const CreateModelFunction& createModel,
32 const LogFunction& log);
33
34 const std::filesystem::path& GetCurrentDirectoryPath() const { return m_CurrentDirectory; }
35
36 private:
37 std::filesystem::path m_CurrentDirectory;
38 char m_Search[128]{};
39 bool m_RequestCreateCppScript = false;
40 };
41}
Entity declarations for the Scenes and Native Scripting subsystem.
std::function< void(const std::filesystem::path &)> CreateModelFunction
const std::filesystem::path & GetCurrentDirectoryPath() const
void Draw(Scene *scene, Entity &selectedEntity, const std::shared_ptr< Mesh > &defaultCubeMesh, const std::shared_ptr< Material > &defaultCubeMaterial, const CreateModelFunction &createModel, const LogFunction &log)
std::function< void(std::string)> LogFunction