using log calls

This commit is contained in:
2022-07-14 18:32:32 +02:00
parent 66376eaeda
commit d6fbb58da8
8 changed files with 39 additions and 38 deletions

View File

@@ -8,14 +8,16 @@
#include "window/Display.h"
#define GLFW_INCLUDE_NONE
#include "render/gui/TowerGui.h"
#include <SDL2/SDL.h>
#include <SDL2/SDL_video.h>
#include <iostream>
#include "game/GameManager.h"
#include "render/Renderer.h"
#include "render/WorldRenderer.h"
#include "../render/gui/imgui/imgui_impl_sdl.h"
#include "misc/Log.h"
#include "misc/Format.h"
#include <SDL2/SDL.h>
#include <SDL2/SDL_video.h>
#include <SDL2/SDL_render.h>
namespace Display {
@@ -94,8 +96,7 @@ bool Create() {
mask_desc = "?";
}
std::cout << "GL Context: " << major << "." << minor << " " << mask_desc
<< ", Color : R" << r << "G" << g << "B" << b << "A" << a << ", Depth bits: " << depth << std::endl;
td::utils::LOG(td::utils::format("GL Context : %i.%i %s, Color : R:%i G:%i B:%i A:%i, Depth bits : %i", major, minor, mask_desc, r, g, b, a, depth));
SDL_GL_MakeCurrent(window, glContext);