summaryrefslogtreecommitdiff
path: root/src/entities.hpp
blob: 53fe0d945e1b931412db2144aab9351402ac5ffe (plain)
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
#ifndef PKE_ENTITIES_HPP
#define PKE_ENTITIES_HPP

#include "vendor/cgltf-include.hpp"
#include "ecs.hpp"
#include "components.hpp"
#include "asset-manager.hpp"
#include "memory.hpp"
#include "window.hpp"

#include <vulkan/vulkan_core.h>

struct EntityType {
	const char *modelFile = nullptr;
	const char *entityTypeCode = nullptr;
	EntityHandle entityHandle = EntityHandle_MAX;
	VkPipelineLayoutCreateInfo *vkPipelineLayoutCreateInfo = nullptr;
	uint32_t startingInstanceCount = 1024;
	struct Importer_GLTF {
		int16_t AccessorIndexVertex = -1;
		int16_t AccessorIndexNormal = -1;
		int16_t AccessorIndexUV = -1;
		int16_t AccessorIndexIndex = -1;
	} Importer_GLTF;
};

void EntityType_Init();
void EntityType_Load(EntityType &et);
void EntityType_Teardown();

#endif /* PKE_ENTITIES_HPP */