diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2023-09-12 14:31:09 -0400 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2023-09-12 14:31:09 -0400 |
| commit | b4ba9eb4f1fe02d65945a263beb3185a617a414b (patch) | |
| tree | bc53bafd81c989b555792171eb9c505f08984aff /src/entities.hpp | |
| parent | e6d5d4ff0dd3d3640860c23034955ff6db149827 (diff) | |
load gltf files - no shaders yet
Diffstat (limited to 'src/entities.hpp')
| -rw-r--r-- | src/entities.hpp | 11 |
1 files changed, 10 insertions, 1 deletions
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 <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_Load(EntityType &et); void EntityType_Teardown(); #endif /* PKE_ENTITIES_HPP */ |
