CSEngine
Loading...
Searching...
No Matches
DrawableStaticMeshComponent.h
1
#pragma once
2
3
#include "SComponent.h"
4
#include "../Util/Render/MeshSurface.h"
5
6
namespace
CSE {
7
8
class
DrawableStaticMeshComponent
:
public
SComponent
{
9
public
:
10
COMPONENT_DEFINE_CONSTRUCTOR(
DrawableStaticMeshComponent
);
11
12
~DrawableStaticMeshComponent
()
override
;
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
}
CSE::DrawableStaticMeshComponent
Definition
DrawableStaticMeshComponent.h:8
CSE::SComponent
Definition
SComponent.h:17
CSE::SGameObject
Definition
SGameObject.h:17
CSE::SISurface
Definition
RenderInterfaces.h:14
CSE::GLMeshID
Definition
GLMeshID.h:7
Component
DrawableStaticMeshComponent.h
Generated on Fri Nov 15 2024 01:09:31 for CSEngine by
1.9.8