1 | //************************************ bs::framework - Copyright 2018 Marko Pintera **************************************// |
2 | //*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********// |
3 | #pragma once |
4 | |
5 | #include "BsCorePrerequisites.h" |
6 | #include "Utility/BsModule.h" |
7 | #include "Mesh/BsMesh.h" |
8 | |
9 | namespace bs |
10 | { |
11 | /** @addtogroup RenderAPI-Internal |
12 | * @{ |
13 | */ |
14 | |
15 | /** Manager that handles creation of Mesh%es. */ |
16 | class BS_CORE_EXPORT MeshManager : public Module<MeshManager> |
17 | { |
18 | public: |
19 | /** Returns some dummy mesh data with one triangle you may use for initializing a mesh. */ |
20 | SPtr<MeshData> getDummyMeshData() const { return mDummyMeshData; } |
21 | |
22 | /** Returns a dummy mesh containing one triangle. */ |
23 | HMesh getDummyMesh() const { return mDummyMesh; } |
24 | |
25 | protected: |
26 | /** @copydoc Module::onStartUp */ |
27 | void onStartUp() override; |
28 | |
29 | private: |
30 | SPtr<MeshData> mDummyMeshData; |
31 | HMesh mDummyMesh; |
32 | }; |
33 | |
34 | /** @} */ |
35 | } |