Skip to content

Commit

Permalink
Chore: Fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
brenocq committed Dec 30, 2023
1 parent 7b88cad commit 3e453b3
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 15 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
/scripts/local_*.sh
/projects/
/resources/
/src/extern/_deps/

# Visual Studio
/.vs
Expand Down
1 change: 0 additions & 1 deletion src/atta/graphics/apis/openGL/image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ Image::~Image() {

void Image::write(uint8_t* data) {
if (!_isCubemap) {
// LOG_DEBUG("graphics::OpenGlImage", "Writing $0 -> $1 ($2)", data, (int)_id, _debugName);
GLenum dataType = Image::convertDataType(_format);
GLenum internalFormat = Image::convertInternalFormat(_format);
GLenum format = Image::convertFormat(_format);
Expand Down
8 changes: 4 additions & 4 deletions src/atta/graphics/apis/openGL/openGLAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ void OpenGLAPI::startUp() {
ASSERT(status, "Failed to initialize Glad!");

// Print info
// LOG_INFO("graphics::OpenGLAPI", "GPU Info:");
// LOG_INFO("graphics::OpenGLAPI", " - Vendor: $0", glGetString(GL_VENDOR));
// LOG_INFO("graphics::OpenGLAPI", " - Renderer: $0", glGetString(GL_RENDERER));
// LOG_INFO("graphics::OpenGLAPI", " - Version: $0", glGetString(GL_VERSION));
LOG_INFO("gfx::gl::OpenGLAPI", "[w]GPU Info:");
LOG_INFO("gfx::gl::OpenGLAPI", " - Vendor: [*w]$0", glGetString(GL_VENDOR));
LOG_INFO("gfx::gl::OpenGLAPI", " - Renderer: [*w]$0", glGetString(GL_RENDERER));
LOG_INFO("gfx::gl::OpenGLAPI", " - Version: [*w]$0", glGetString(GL_VERSION));

#if defined(ATTA_DEBUG_BUILD) && !defined(ATTA_OS_WEB)
// Enable Debug
Expand Down
18 changes: 9 additions & 9 deletions src/atta/ui/editor/editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ void Editor::render() {
_dockSpace.render();

// Demo
bool demo = true;
// bool demo = true;
// ImGui::ShowDemoWindow(&demo);
// ImPlot::ShowDemoWindow(&demo);

Expand Down Expand Up @@ -64,14 +64,14 @@ void Editor::render() {

renderCameraWindows();

//// Project UI
// script::ProjectScript* project = script::getProjectScript();
// if (project)
// try {
// project->onUIRender();
// } catch (std::exception& e) {
// LOG_ERROR("ui::Editor", "Error when executing [w]ProjectScript::onUIRender[]: $0", e.what());
// }
// Project UI
script::ProjectScript* project = script::getProjectScript();
if (project)
try {
project->onUIRender();
} catch (std::exception& e) {
LOG_ERROR("ui::Editor", "Error when executing [w]ProjectScript::onUIRender[]: $0", e.what());
}
}

void Editor::renderCameraWindows() {
Expand Down

0 comments on commit 3e453b3

Please sign in to comment.