-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEntity.h
More file actions
30 lines (28 loc) · 781 Bytes
/
Copy pathEntity.h
File metadata and controls
30 lines (28 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#pragma once
#include <vector>
#include "RawEntity.h"
#include "Vector3f.h"
#include "Texture.h"
class Entity
{
public:
Entity(RawEntity& rawEntity, Texture& texture, Vector3f worldTranslation, Vector3f worldRotation, float worldScale);
virtual ~Entity();
unsigned int getVaoID();
unsigned int getTextureID();
unsigned int getTextureUnit();
void increaseTranslationVector(float dx, float dy, float dz);
void increaseRotationVector(float dx, float dy, float dz);
void increaseScale(float ds);
Vector3f getTranslationVector();
Vector3f getRotationVector();
float getScale();
unsigned int getIndexCount();
unsigned int getVertexCount();
private:
RawEntity& m_rawEntity;
Texture& m_texture;
Vector3f m_translationVector;
Vector3f m_rotationVector;
float m_scale;
};