32 lines
562 B
C
32 lines
562 B
C
|
#pragma once
|
||
|
|
||
|
#include "SceneItem.h"
|
||
|
#include "Texture.h"
|
||
|
|
||
|
#include <vector>
|
||
|
#include <string>
|
||
|
#include <unordered_map>
|
||
|
#include <memory>
|
||
|
|
||
|
class AbstractMesh;
|
||
|
//class Texture;
|
||
|
|
||
|
class SceneModel : public SceneItem
|
||
|
{
|
||
|
public:
|
||
|
SceneModel(std::unique_ptr<AbstractMesh> mesh);
|
||
|
|
||
|
AbstractMesh* getMesh() const;
|
||
|
|
||
|
void updateMesh(std::unique_ptr<AbstractMesh> mesh);
|
||
|
|
||
|
Type getType() const override;
|
||
|
|
||
|
private:
|
||
|
std::unique_ptr<AbstractMesh> mMesh;
|
||
|
std::unique_ptr<Texture> mColorMap;
|
||
|
|
||
|
bool mMeshIsDirty{true};
|
||
|
bool mColorMapIsDirty{true};
|
||
|
};
|