From 695aae93e989ea3e0d21ef2cd2733895eae195bb Mon Sep 17 00:00:00 2001 From: CatChow0 Date: Mon, 8 Apr 2024 14:56:15 +0200 Subject: [PATCH] Patch Update - Remove Bitmap from the render --- enginecustom/applicationclass.cpp | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/enginecustom/applicationclass.cpp b/enginecustom/applicationclass.cpp index 4d78082..081dd27 100644 --- a/enginecustom/applicationclass.cpp +++ b/enginecustom/applicationclass.cpp @@ -977,22 +977,6 @@ bool ApplicationClass::Render(float rotation, float x, float y, float z) return false; } - // Put the bitmap vertex and index buffers on the graphics pipeline to prepare them for drawing. - result = m_Bitmap->Render(m_Direct3D->GetDeviceContext()); - if (!result) - { - return false; - } - - m_Bitmap->SetRenderLocation(1200, 50); - - // Render the bitmap with the texture shader. - result = m_TextureShader->Render(m_Direct3D->GetDeviceContext(), m_Bitmap->GetIndexCount(), worldMatrix, viewMatrix, orthoMatrix, m_Bitmap->GetTexture()); - if (!result) - { - return false; - } - //scaleMatrix = XMMatrixScaling(0.75f, 0.75f, 0.75f); // Build the scaling matrix. //rotateMatrix = XMMatrixRotationY(rotation); // Build the rotation matrix. //translateMatrix = XMMatrixTranslation(x, y, z); // Build the translation matrix.