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

@@ -6,8 +6,7 @@
#include "window/Display.h"
#include "game/client/ClientGame.h"
#include "game/client/Client.h"
#include <iostream>
#include "misc/Format.h"
namespace td {
namespace render {
@@ -25,11 +24,11 @@ ImVec4 WorldRenderer::GetImGuiTeamColor(game::TeamColor color) {
}
void WorldRenderer::LoadModels() {
std::cout << "World Created !\n";
utils::LOGD("World Created !");
m_WorldVao = std::make_unique<GL::VertexArray>(std::move(WorldLoader::LoadWorldModel(m_World)));
m_MobVao = std::make_unique<GL::VertexArray>(std::move(WorldLoader::LoadMobModel()));
m_SelectTileVao = std::make_unique<GL::VertexArray>(std::move(WorldLoader::LoadTileSelectModel()));
std::cout << "Vertex Count : " << m_WorldVao->GetVertexCount() << std::endl;
utils::LOGD(utils::format("Vertex Count : %u", m_WorldVao->GetVertexCount()));
}
WorldRenderer::WorldRenderer(game::World* world, client::ClientGame* client) : m_Client(client), m_Renderer(m_Client->GetRenderer()), m_World(world), m_Zoom(0.1) {