CSEngine
Loading...
Searching...
No Matches
DrawableStaticMeshComponent.h
1#pragma once
2
3#include "SComponent.h"
4#include "../Util/Render/MeshSurface.h"
5
6namespace CSE {
7
9 public:
10 COMPONENT_DEFINE_CONSTRUCTOR(DrawableStaticMeshComponent);
11
13
14 void Init() override;
15
16 void Tick(float elapsedTime) override;
17
18 void Exterminate() override;
19
20 SComponent* Clone(SGameObject* object) override;
21
22 virtual bool SetMesh(const SISurface& meshSurface);
23
24 const GLMeshID& GetMeshID() const {
25 return m_meshId;
26 }
27
28 protected:
29 virtual void CreateMeshBuffers(const SISurface& surface);
30
31 protected:
32 GLMeshID m_meshId;
33 };
34}