Code standardtization pass. Fixed a bunch of warnings.

This commit is contained in:
Antoine Pilote
2023-03-04 17:50:02 -05:00
parent dfd8c0c57d
commit 8be7695d1e
28 changed files with 133 additions and 106 deletions

View File

@@ -386,7 +386,7 @@ namespace Nuake {
geo_generator_run();
DefaultMaterial = MaterialManager::Get()->GetMaterial("default");
for (uint32_t e = 0; e < entity_count; ++e)
for (uint32_t e = 0; e < (uint32_t)entity_count; ++e)
{
entity* entity_inst = &entities[e];
entity_geometry* entity_geo_inst = &entity_geo[e];
@@ -598,7 +598,7 @@ namespace Nuake {
for (auto& index : pm.Indices)
batchedIndices.push_back(indexOffset + index);
indexOffset += pm.Vertices.size();
indexOffset += static_cast<uint32_t>(pm.Vertices.size());
}
Ref<Mesh> mesh = CreateRef<Mesh>();