Mercurial > games > semicongine
comparison src/zamikongine/engine.nim @ 39:0cb294c5d2fd
fix: hello cube, add: run_all command
author | Sam <sam@basx.dev> |
---|---|
date | Wed, 18 Jan 2023 13:49:12 +0700 |
parents | c3c963e7c1a6 |
children |
comparison
equal
deleted
inserted
replaced
38:c3c963e7c1a6 | 39:0cb294c5d2fd |
---|---|
526 allmeshes.add(mesh[]) | 526 allmeshes.add(mesh[]) |
527 if allmeshes.len > 0: | 527 if allmeshes.len > 0: |
528 var ubermesh = createUberMesh(allmeshes) | 528 var ubermesh = createUberMesh(allmeshes) |
529 result.vertexBuffers.add createVertexBuffers(ubermesh, result.device, engine.vulkan.device.physicalDevice.device, engine.vulkan.commandPool, engine.vulkan.device.graphicsQueue) | 529 result.vertexBuffers.add createVertexBuffers(ubermesh, result.device, engine.vulkan.device.physicalDevice.device, engine.vulkan.commandPool, engine.vulkan.device.graphicsQueue) |
530 | 530 |
531 when not IndexType is void: | 531 when not (IndexType is void): |
532 # vertex buffers with indexes | 532 # vertex buffers with indexes |
533 var allindexedmeshes: seq[IndexedMesh[VertexType, IndexType]] | 533 var allindexedmeshes: seq[IndexedMesh[VertexType, IndexType]] |
534 for mesh in partsOfType[ref IndexedMesh[VertexType, IndexType]](engine.currentscenedata): | 534 for mesh in partsOfType[ref IndexedMesh[VertexType, IndexType]](engine.currentscenedata): |
535 allindexedmeshes.add(mesh[]) | 535 allindexedmeshes.add(mesh[]) |
536 if allindexedmeshes.len > 0: | 536 if allindexedmeshes.len > 0: |