initial commit
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
#ifndef HYDRAMESHMANAGER
|
||||
#define HYDRAMESHMANAGER
|
||||
#include "HydraMesh.h"
|
||||
#include "../engine/HydraObject.h"
|
||||
#include <queue>
|
||||
#include <vector>
|
||||
#include <mutex>
|
||||
|
||||
class HydraMeshManager : public HydraObject
|
||||
{
|
||||
public:
|
||||
void Initialise();
|
||||
void Shutdown();
|
||||
HydraID CreateMesh();
|
||||
HydraMesh* const GetMesh(HydraID mesh_id);
|
||||
void DeleteMesh(HydraID mesh_id);
|
||||
void CalculateNormals(HydraID mesh_id);
|
||||
private:
|
||||
std::mutex m_mutex;
|
||||
std::vector<HydraMesh> m_meshes;
|
||||
std::queue<HydraID> m_available_mesh_ids;
|
||||
|
||||
};
|
||||
|
||||
#endif /* HYDRAMESHMANAGER */
|
||||
Reference in New Issue
Block a user