summaryrefslogtreecommitdiff
path: root/src/entities.cpp
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2023-09-20 12:26:34 -0400
committerJonathan Bradley <jcb@pikum.xyz>2023-09-20 12:26:34 -0400
commit3a5ac5ce7a039a07f775aab6e37a423ddf9294ed (patch)
treef1269dc9ab68238d2b88cc787408aa80115500d9 /src/entities.cpp
parentac9fa36a7b7888f47339d7ddead8b3d395cc3933 (diff)
add plane model
Diffstat (limited to 'src/entities.cpp')
-rw-r--r--src/entities.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/entities.cpp b/src/entities.cpp
index 70b3a58..0c7003c 100644
--- a/src/entities.cpp
+++ b/src/entities.cpp
@@ -73,6 +73,21 @@ void EntityType_Init() {
}
}
);
+ globalEntityTypes.Push(
+ EntityType {
+ .modelsDir = "assets/models",
+ .modelFile = "plane.gltf",
+ .entityTypeCode = "EntTypePlane",
+ .entityHandle = ECS_CreateEntity(),
+ .startingInstanceCount = 16,
+ .Importer_GLTF = {
+ .AccessorIndexVertex = 0,
+ .AccessorIndexNormal = 1,
+ .AccessorIndexUV = 2,
+ .AccessorIndexIndex = 3,
+ }
+ }
+ );
VkDescriptorSetLayoutBinding vkDescriptorSetLayoutBindings[2];
for (long i = 0; i < 2; ++i) {