-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvkc_entity.h
46 lines (37 loc) · 937 Bytes
/
vkc_entity.h
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef VKC_ENTITY_H
#define VKC_ENTITY_H
#include "stable.h"
#include "vkc_device.h"
#include "mgbuffer.h"
#include "vkc_pipeline.h"
/**
* Class used for entities.
*
* Classes named "Vkc[class]" stand for "Vulkan custom class".
*/
class VkcEntity
{
// Objects:
protected:
QVector<VkVertex> vertices;
QVector<uint32_t> indices;
MgBuffer buffer;
QVector3D position;
QVector3D scale;
QQuaternion rotation;
float dir;
// Functions:
public:
VkcEntity();
VkcEntity(
const VkcDevice *device
);
~VkcEntity();
void render(
VkCommandBuffer commandBuffer,
MgBuffer uniformBuffer,
QMatrix4x4 vpMatrix,
const VkcDevice *device
);
};
#endif // VKC_ENTITY_H