From b4ba9eb4f1fe02d65945a263beb3185a617a414b Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Tue, 12 Sep 2023 14:31:09 -0400 Subject: load gltf files - no shaders yet --- src/entities.hpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/entities.hpp') diff --git a/src/entities.hpp b/src/entities.hpp index 005c83c..53fe0d9 100644 --- a/src/entities.hpp +++ b/src/entities.hpp @@ -8,15 +8,24 @@ #include "memory.hpp" #include "window.hpp" +#include + 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_Load(EntityType &et); void EntityType_Teardown(); #endif /* PKE_ENTITIES_HPP */ -- cgit v1.2.3