NoJobEngine
2.0.7
Toggle main menu visibility
Loading...
Searching...
No Matches
ProjectPanel.h
Go to the documentation of this file.
1
6
#pragma once
7
8
#include "
Engine/Scene/Entity.h
"
9
#include <filesystem>
10
#include <functional>
11
#include <memory>
12
#include <string>
13
14
namespace
NoJob
15
{
16
class
Scene
;
17
class
Mesh
;
18
class
Material
;
19
20
class
ProjectPanel
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.h
Entity declarations for the Scenes and Native Scripting subsystem.
NoJob::Entity
Definition
Entity.h:16
NoJob::Material
Definition
Material.h:23
NoJob::Mesh
Definition
Mesh.h:38
NoJob::ProjectPanel
Definition
ProjectPanel.h:21
NoJob::ProjectPanel::CreateModelFunction
std::function< void(const std::filesystem::path &)> CreateModelFunction
Definition
ProjectPanel.h:24
NoJob::ProjectPanel::GetCurrentDirectoryPath
const std::filesystem::path & GetCurrentDirectoryPath() const
Definition
ProjectPanel.h:34
NoJob::ProjectPanel::Initialize
void Initialize()
Definition
ProjectPanel.cpp:20
NoJob::ProjectPanel::Draw
void Draw(Scene *scene, Entity &selectedEntity, const std::shared_ptr< Mesh > &defaultCubeMesh, const std::shared_ptr< Material > &defaultCubeMaterial, const CreateModelFunction &createModel, const LogFunction &log)
Definition
ProjectPanel.cpp:25
NoJob::ProjectPanel::LogFunction
std::function< void(std::string)> LogFunction
Definition
ProjectPanel.h:23
NoJob::Scene
Definition
Scene.h:31
NoJob
Definition
BTActionNode.h:13
Editor
Assets
ProjectPanel.h
Generated by
1.18.0