Skip to content

Commit

Permalink
AUTO format
Browse files Browse the repository at this point in the history
  • Loading branch information
gabekz committed Aug 16, 2023
1 parent 0e97a63 commit 011ef21
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
3 changes: 2 additions & 1 deletion src/entity/v1/builtin/model/model_draw.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ DrawModel(struct ComponentModel *model,
texture_bind(mesh->materialImported->textures[1], 10);
} else if (!mesh->usingImportedMaterial) {
glActiveTexture(GL_TEXTURE10);
texture_bind(((Material *)model->material)->textures[1], 10);
texture_bind(((Material *)model->material)->textures[1],
10);
}
}

Expand Down
14 changes: 8 additions & 6 deletions src/tools/debugui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -346,10 +346,10 @@ DebugGui::Render()
ImGui::TextUnformatted("Entity");
ImGui::TableNextColumn();
if (ImGui::SmallButton("Inspect")) {
Entity entity = (Entity {.id = (EntityId)row_n + 1,
.index = (ui64)row_n,
.ecs = ecs});
m_selectedEntity = entity;
Entity entity = (Entity {.id = (EntityId)row_n + 1,
.index = (ui64)row_n,
.ecs = ecs});
m_selectedEntity = entity;
m_showComponentViewer = true;
}
ImGui::PopID();
Expand Down Expand Up @@ -517,7 +517,8 @@ DebugGui::Render()
ImGui::PopStyleColor();
ImGui::Separator();
struct ComponentCameraLook &p =
*(static_cast<struct ComponentCameraLook *>(ecs_get(e, C_CAMERALOOK)));
*(static_cast<struct ComponentCameraLook *>(
ecs_get(e, C_CAMERALOOK)));
ImGui::DragFloat("Sensitivity", &p.sensitivity, 0.45f, 0.9f);
ImGui::EndChild();
}
Expand All @@ -530,7 +531,8 @@ DebugGui::Render()
ImGui::PopStyleColor();
ImGui::Separator();
struct ComponentCameraMovement &p =
*(static_cast<struct ComponentCameraMovement *>(ecs_get(e, C_CAMERAMOVEMENT)));
*(static_cast<struct ComponentCameraMovement *>(
ecs_get(e, C_CAMERAMOVEMENT)));
ImGui::DragFloat("Speed ", &p.speed, 0.45f, 0.9f);
ImGui::EndChild();
}
Expand Down
2 changes: 1 addition & 1 deletion src/util/logger.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ init(void)
InitializeCriticalSection(&s_mutex);
#else
pthread_mutex_init(&s_mutex, NULL);
#endif /* defined(_WIN32) || defined(_WIN64) */
#endif /* defined(_WIN32) || defined(_WIN64) */
s_initialized = 1; /* true */
}

Expand Down

0 comments on commit 011ef21

Please sign in to comment.