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
41struct CameraImportOptions
42{
43 std::string mFilePath;
44 std::string mCameraName;
45 bool mIsMainCamera = false;
46 bool mOverrideCameraName = false;
47};
48
49#endif
ShadingModel
Definition EngineTypes.h:97
VertexColorMode
Definition EngineTypes.h:116
Definition Node3d.h:14
Definition StaticMesh.h:18
Definition Asset.h:82