Polyphase Game Engine
Loading...
Searching...
No Matches
EditorTypes.h
Go to the documentation of this file.
1#pragma once
2
3#if EDITOR
4
5#include "EngineTypes.h"
6
7struct AssetStub;
8
9enum class PolyphaseMeshType { Node3D, StaticMesh, InstancedMesh };
10
11struct PolyphaseNodeExtras
12{
13 PolyphaseMeshType mMeshType = PolyphaseMeshType::StaticMesh;
14 std::string mAssetName;
15 uint64_t mAssetUuid = 0;
16 std::string mScriptPath;
17 std::string mScriptPropsJson;
18 std::string mScriptPropsTypesJson;
19 std::string mMaterialType;
20 bool mMainCamera = false;
21};
22
23struct SceneImportOptions
24{
25 std::string mFilePath;
26 std::string mSceneName;
27 std::string mPrefix;
28 bool mImportMeshes = true;
29 bool mImportMaterials = true;
30 bool mImportTextures = true;
31 bool mImportLights = true;
32 bool mImportCameras = true;
33 bool mEnableCollision = true;
34 bool mApplyGltfExtras = true;
35 ShadingModel mDefaultShadingModel = ShadingModel::Lit;
36 VertexColorMode mDefaultVertexColorMode = VertexColorMode::None;
37 bool mReimportTextures = false;
38 AssetStub* mReimportSceneStub = nullptr; // Non-null = reimport mode
39};
40
41enum class MeshImportMode : uint8_t
42{
43 AsScene = 0,
44 AsMultipleObjects = 1,
45 AsSingleObject = 2,
46 Count
47};
48
49struct MeshImportOptions
50{
51 MeshImportMode mMode = MeshImportMode::AsMultipleObjects;
52 bool mPlaceInSubdirectory = true;
53 bool mImportMaterials = true;
54 bool mImportTextures = true;
55 std::string mPrefix;
56 ShadingModel mDefaultShadingModel = ShadingModel::Lit;
57 VertexColorMode mDefaultVertexColorMode = VertexColorMode::None;
58};
59
60struct CameraImportOptions
61{
62 std::string mFilePath;
63 std::string mCameraName;
64 bool mIsMainCamera = false;
65 bool mOverrideCameraName = false;
66};
67
68#endif
ShadingModel
Definition EngineTypes.h:104
VertexColorMode
Definition EngineTypes.h:123
Definition Node3d.h:14
Definition StaticMesh.h:18
Definition Asset.h:88