From 8ea5af6ef980a27f2ac26778e7e161811170781e Mon Sep 17 00:00:00 2001 From: MarcEricMartel Date: Mon, 27 Nov 2023 14:48:18 -0500 Subject: [PATCH] 16 tons. --- SQCSim2021/engine.cpp | 1 + SQCSim2021/remoteplayer.cpp | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/SQCSim2021/engine.cpp b/SQCSim2021/engine.cpp index 0cbbc8a..858f5a6 100644 --- a/SQCSim2021/engine.cpp +++ b/SQCSim2021/engine.cpp @@ -1359,6 +1359,7 @@ void Engine::Render(float elapsedTime) { for (auto& [key, player] : m_players) { RemotePlayer* rt = static_cast(player); //std::cout << key << ": "; rt->GetPosition().Afficher(); + glClear(GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); rt->Render(m_animeAtlas, m_shader01, all, elapsedTime); m_otherplayerpos = player->GetPosition(); // Aller chercher GetPosition des deux façon, voir si ça chie. } diff --git a/SQCSim2021/remoteplayer.cpp b/SQCSim2021/remoteplayer.cpp index d918ed9..d203fb0 100644 --- a/SQCSim2021/remoteplayer.cpp +++ b/SQCSim2021/remoteplayer.cpp @@ -88,8 +88,6 @@ void RemotePlayer::Render(TextureAtlas& atlas, Shader& shader, Transformation tr float z = GetPosition().z; float width = 1.f; float height = 1.7f; - - std::cout << "hahahaha"; //Matrix4 mat4 = tran.GetMatrix(); //mat4 VP = pMatrix * vMatrix;