Polyphase Game Engine
Loading...
Searching...
No Matches
EditorUtils.h
Go to the documentation of this file.
1#if EDITOR
2
3#if PLATFORM_WINDOWS
4#include <Windows.h>
5#endif
6
7#include "Maths.h"
8#include "EngineTypes.h"
9#include "PolyphaseAPI.h"
10
11#include <stdint.h>
12
13#include <assimp/Importer.hpp>
14#include <assimp/scene.h>
15#include <assimp/postprocess.h>
16
17struct AssetStub;
18class AssetDir;
19class Node;
20struct aiMesh;
21
22void EditorCenterCursor();
23glm::vec3 EditorGetFocusPosition();
24POLYPHASE_API AssetStub* EditorAddUniqueAsset(const char* baseName, AssetDir* dir, TypeId assetType, bool autoCreate);
25std::string EditorGetAssetNameFromPath(const std::string& path);
26
27void RemoveRedundantDescendants(std::vector<Node*>& nodes);
28std::string GetDevkitproPath();
29std::string GetDevenvPath();
30
31bool IsAiCollisionMesh(const aiMesh* mesh);
32
33const aiNode* FindMeshNode(const aiScene* scene, const aiNode* node, const aiMesh* mesh);
34std::string GetFileNameFromPath(const std::string& path);
35std::string GenerateUniqueMeshName(const std::string& baseName, const aiScene* scene, int32_t meshIndex);
36
37#endif
uint32_t TypeId
Definition EngineTypes.h:72
Export macros for Polyphase Engine symbols.
#define POLYPHASE_API
Definition PolyphaseAPI.h:31
Definition AssetDir.h:11
Definition Node.h:67
Definition Asset.h:89