From e1fc89413f7429fd2eb1d22a125301d75e0d690e Mon Sep 17 00:00:00 2001 From: kimnuri Date: Tue, 3 Feb 2026 20:13:29 +0900 Subject: [PATCH] =?UTF-8?q?[add]=20RenderCollider=20=EB=A6=B4=EB=A6=AC?= =?UTF-8?q?=EC=A6=88=EB=AA=A8=EB=93=9C=20[add]=20RenderRenderTarget=20?= =?UTF-8?q?=EB=A6=B4=EB=A6=AC=EC=A6=88=EB=AA=A8=EB=93=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jusin154_Team3D/Client/Default/Client.vcxproj | 2 +- Jusin154_Team3D/Client/Private/Goblin.cpp | 2 +- .../Client/Private/Goblin_Mage.cpp | 22 ++-- .../Client/Private/Human_Duelist.cpp | 13 +-- .../Client/Private/Level_GamePlay.cpp | 6 + .../Private/MapElement_Interactable.cpp | 4 +- Jusin154_Team3D/Client/Private/Player.cpp | 110 +++++++++--------- Jusin154_Team3D/Client/Private/Ranrok.cpp | 54 ++++----- Jusin154_Team3D/Client/Private/Troll.cpp | 2 +- .../Client/Private/Troll_Weapon.cpp | 8 +- Jusin154_Team3D/Client/Public/Player.h | 8 +- Jusin154_Team3D/Client/Public/Ranrok.h | 9 +- Jusin154_Team3D/Client/Public/Troll_Weapon.h | 4 +- .../Engine/Private/Character_Controller.cpp | 16 +-- .../Engine/Private/GameInstance.cpp | 7 +- .../Engine/Private/RenderTarget.cpp | 4 +- .../Engine/Private/RenderTarget_Manager.cpp | 4 +- Jusin154_Team3D/Engine/Private/Renderer.cpp | 27 +++-- .../Engine/Private/Renderer_Declare.cpp | 5 +- .../Engine/Private/RigidBody_Dynamic.cpp | 21 ++-- .../Engine/Public/Character_Controller.h | 13 ++- Jusin154_Team3D/Engine/Public/Engine_Define.h | 1 - Jusin154_Team3D/Engine/Public/Engine_Macro.h | 11 ++ Jusin154_Team3D/Engine/Public/GameInstance.h | 13 ++- Jusin154_Team3D/Engine/Public/RenderTarget.h | 4 +- .../Engine/Public/RenderTarget_Manager.h | 8 +- Jusin154_Team3D/Engine/Public/Renderer.h | 8 +- .../Engine/Public/RigidBody_Dynamic.h | 10 +- Jusin154_Team3D/Update_Lib.bat | 1 + 29 files changed, 212 insertions(+), 185 deletions(-) diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj index b37ebe447..e214336b9 100644 --- a/Jusin154_Team3D/Client/Default/Client.vcxproj +++ b/Jusin154_Team3D/Client/Default/Client.vcxproj @@ -150,7 +150,7 @@ call Update_Resources.bat Windows true ../../EngineSDK/Lib/$(ConfigurationName);%(AdditionalLibraryDirectories) - Engine.lib;fmod_vc.lib;PhysX_64.lib;PhysXCommon_64.lib;PhysXCooking_64.lib;PhysXExtensions_static_64.lib;PhysXFoundation_64.lib;%(AdditionalDependencies);%(AdditionalDependencies) + Engine.lib;fmod_vc.lib;PhysX_64.lib;PhysXCommon_64.lib;PhysXCooking_64.lib;PhysXExtensions_static_64.lib;PhysXFoundation_64.lib;DirectXTK.lib;%(AdditionalDependencies) cd /d "$(SolutionDir)" diff --git a/Jusin154_Team3D/Client/Private/Goblin.cpp b/Jusin154_Team3D/Client/Private/Goblin.cpp index f51c1cae0..75b4a5094 100644 --- a/Jusin154_Team3D/Client/Private/Goblin.cpp +++ b/Jusin154_Team3D/Client/Private/Goblin.cpp @@ -222,7 +222,7 @@ HRESULT CGoblin::Render() Render_OutLine(); } -#ifdef _DEBUG +#ifdef RELEASE_DEBUGGER if (true == m_pCharacter_Controller->IsActive()) { if (FAILED(m_pCharacter_Controller->Render())) { return E_FAIL; diff --git a/Jusin154_Team3D/Client/Private/Goblin_Mage.cpp b/Jusin154_Team3D/Client/Private/Goblin_Mage.cpp index bb54c23e6..09a661a91 100644 --- a/Jusin154_Team3D/Client/Private/Goblin_Mage.cpp +++ b/Jusin154_Team3D/Client/Private/Goblin_Mage.cpp @@ -233,17 +233,17 @@ HRESULT CGoblin_Mage::Render() Render_OutLine(); } -#ifdef _DEBUG - //if (true == m_pCharacter_Controller->IsActive()) { - // if (FAILED(m_pCharacter_Controller->Render())) { - // return E_FAIL; - // } - //} - //else if (true == m_pRigidBody->IsActive()) { - // if (FAILED(m_pRigidBody->Render())) { - // return E_FAIL; - // } - //} +#ifdef RELEASE_DEBUGGER + if (true == m_pCharacter_Controller->IsActive()) { + if (FAILED(m_pCharacter_Controller->Render())) { + return E_FAIL; + } + } + else if (true == m_pRigidBody->IsActive()) { + if (FAILED(m_pRigidBody->Render())) { + return E_FAIL; + } + } #endif diff --git a/Jusin154_Team3D/Client/Private/Human_Duelist.cpp b/Jusin154_Team3D/Client/Private/Human_Duelist.cpp index d04145478..83ea1618e 100644 --- a/Jusin154_Team3D/Client/Private/Human_Duelist.cpp +++ b/Jusin154_Team3D/Client/Private/Human_Duelist.cpp @@ -144,9 +144,9 @@ void CHuman_Duelist::Late_Update(_float fTimeDelta) m_pTransformCom->Set_State(STATE::POSITION, m_pCharacter_Controller->Get_FootPosition()); m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); -#ifdef _DEBUG +#ifdef RELEASE_DEBUGGER m_pGameInstance->Add_RenderGroup(RENDER::NONLIGHT, this); -#endif // _DEBUG +#endif // RELEASE_DEBUGGER Set_Shadow(m_pGameInstance->IsIn_ShadowViewFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius())); @@ -208,14 +208,11 @@ HRESULT CHuman_Duelist::Render() Render_OutLine(); } } -#ifdef _DEBUG - //m_pCharacter_Controller->Render(); -#endif // _DEBUG - } -#ifdef _DEBUG +#ifdef RELEASE_DEBUGGER if (RENDER::NONLIGHT == eType) { - //m_pRigidBody->Render(); + m_pCharacter_Controller->Render(); + m_pRigidBody->Render(); } #endif diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp index 8d60bbe54..c6f633d86 100644 --- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp +++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp @@ -181,6 +181,12 @@ void CLevel_GamePlay::Update(_float fTimeDelta) #endif #endif // _DEBUG +#ifdef RELEASE_DEBUGGER + if (m_pGameInstance->Key_Down(DIK_F5)) { + m_pGameInstance->Toggle_RenderCollider(); + } +#endif + if (bStartCinematic && false == m_bIntroCinematic) { m_bIntroCinematic = true; bStartCinematic = false; diff --git a/Jusin154_Team3D/Client/Private/MapElement_Interactable.cpp b/Jusin154_Team3D/Client/Private/MapElement_Interactable.cpp index ca1b2fd9f..cebac4c48 100644 --- a/Jusin154_Team3D/Client/Private/MapElement_Interactable.cpp +++ b/Jusin154_Team3D/Client/Private/MapElement_Interactable.cpp @@ -148,11 +148,11 @@ HRESULT CMapElement_Interactable::Render() if (m_bDrawOutLine) { Render_OutLine(); } -#ifdef _DEBUG +#ifdef RELEASE_DEBUGGER if (FAILED(m_pRigidBody->Render())) { return E_FAIL; } -#endif // _DEBUG +#endif // RELEASE_DEBUGGER return S_OK; } diff --git a/Jusin154_Team3D/Client/Private/Player.cpp b/Jusin154_Team3D/Client/Private/Player.cpp index 8e70cd4aa..a5705ca32 100644 --- a/Jusin154_Team3D/Client/Private/Player.cpp +++ b/Jusin154_Team3D/Client/Private/Player.cpp @@ -111,15 +111,14 @@ HRESULT CPlayer::Initialize(void* pArg) m_pBroomRaceManager = pDesc->pBroomRaceManager; } -#ifdef _DEBUG - +#ifdef RELEASE_DEBUGGER m_BasicEffect = make_unique(m_pDevice); m_BasicEffect->SetVertexColorEnabled(true); m_BasicEffect->SetView(m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW)); m_BasicEffect->SetProjection(m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ)); m_Batch = make_unique>(m_pContext); -#endif // _DEBUG +#endif // RELEASE_DEBUGGER // UI 연동 추가 m_pInfoInstance->Add_Event(TEXT("UseSpell"), [this](void* p) {this->Get_Spell(*reinterpret_cast<_int*>(p)); }); @@ -197,9 +196,9 @@ void CPlayer::Late_Update(_float fTimeDelta) m_pTransformCom->Set_State(STATE::POSITION, m_pCharacter_Controller->Get_FootPosition()); m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); -#ifdef _DEBUG +#ifdef RELEASE_DEBUGGER m_pGameInstance->Add_RenderGroup(RENDER::NONLIGHT, this); -#endif // _DEBUG +#endif // RELEASE_DEBUGGER Set_Shadow(m_pGameInstance->IsIn_ShadowViewFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius())); @@ -265,17 +264,12 @@ HRESULT CPlayer::Render() return E_FAIL; } } -#ifdef _DEBUG -#ifdef 기무리 - //Render_CameraCoordinateSystem(); - //m_pCharacter_Controller->Render(); -#endif // 기무리 -#endif // _DEBUG - } -#ifdef _DEBUG +#ifdef RELEASE_DEBUGGER if (RENDER::NONLIGHT == eType) { - //m_pRigidBody->Render(); + Render_CameraCoordinateSystem(); + m_pRigidBody->Render(); + m_pCharacter_Controller->Render(); } #endif @@ -1125,58 +1119,62 @@ void CPlayer::Free() SAFE_RELEASE(m_pRaceRing); SAFE_RELEASE(m_pCarriage); } -#ifdef _DEBUG +#ifdef RELEASE_DEBUGGER void CPlayer::Render_CameraCoordinateSystem() { - m_Batch->Begin(); + //m_Batch->Begin(); - const _float fArrowLength = 2.0f; - _vector xmvLook = XMVector4Normalize(XMVectorSetY(m_pTransformCom->Get_State(STATE::LOOK), 0.f)); - _float2 vLook = { XMVectorGetX(xmvLook), XMVectorGetZ(xmvLook) }; + //const _float fArrowLength = 2.0f; + //_vector xmvLook = XMVector4Normalize(XMVectorSetY(m_pTransformCom->Get_State(STATE::LOOK), 0.f)); + //_float2 vLook = { XMVectorGetX(xmvLook), XMVectorGetZ(xmvLook) }; + //m_Batch->DrawLine( // W + // VertexPositionColor(fArrowLength * -XMLoadFloat3(&m_vCameraLookDir), DirectX::Colors::GhostWhite), + // VertexPositionColor(fArrowLength * XMLoadFloat3(&m_vCameraLookDir), DirectX::Colors::Blue) + //); + //m_Batch->DrawLine( // D + // VertexPositionColor(fArrowLength * -XMLoadFloat3(&m_vCameraRightDir), DirectX::Colors::GhostWhite), + // VertexPositionColor(fArrowLength * XMLoadFloat3(&m_vCameraRightDir), DirectX::Colors::Red) + //); + //m_Batch->DrawLine( // PlayerLook + // VertexPositionColor(XMVectorZero(), DirectX::Colors::GhostWhite), + // VertexPositionColor(fArrowLength * xmvLook, DirectX::Colors::HotPink) + //); + //m_Batch->End(); - GUI::Begin("CAMERA", 0, IMGUI_GLOBAL_BEGIN_FLAG); - GUI::PushItemWidth(IMGUI_GLOBAL_ITEM_WIDTH); - if (GUI::CollapsingHeader("Player_CAM_COOORD")) { + //GUI::Begin("CAMERA", 0, IMGUI_GLOBAL_BEGIN_FLAG); + //GUI::PushItemWidth(IMGUI_GLOBAL_ITEM_WIDTH); + //if (GUI::CollapsingHeader("Player_CAM_COOORD")) { - GUI::Text("%d", m_LockOnInfo.pUnit); + // GUI::Text("%d", m_LockOnInfo.pUnit); - GUI::Text("W : %.2f, %.2f, %.2f", m_vCameraLookDir.x, 0.f, m_vCameraLookDir.z); - GUI::Text("A : %.2f, %.2f, %.2f", -m_vCameraRightDir.x, 0.f, -m_vCameraRightDir.z); - GUI::Text("S : %.2f, %.2f, %.2f", -m_vCameraLookDir.x, 0.f, -m_vCameraLookDir.z); - GUI::Text("D : %.2f, %.2f, %.2f", m_vCameraRightDir.x, 0.f, m_vCameraRightDir.z); + // GUI::Text("W : %.2f, %.2f, %.2f", m_vCameraLookDir.x, 0.f, m_vCameraLookDir.z); + // GUI::Text("A : %.2f, %.2f, %.2f", -m_vCameraRightDir.x, 0.f, -m_vCameraRightDir.z); + // GUI::Text("S : %.2f, %.2f, %.2f", -m_vCameraLookDir.x, 0.f, -m_vCameraLookDir.z); + // GUI::Text("D : %.2f, %.2f, %.2f", m_vCameraRightDir.x, 0.f, m_vCameraRightDir.z); - _float fButtonSize = 45.f; - GUI::Button("##0", { fButtonSize, fButtonSize }); GUI::SameLine(); - GUI::Button(("W : " + to_string(XMConvertToDegrees(CMyTools::Get_Direction2D(vLook, { m_vCameraLookDir.x , m_vCameraLookDir.z })))).c_str(), { fButtonSize, fButtonSize }); GUI::SameLine(); - GUI::Button("##2", { fButtonSize, fButtonSize }); - GUI::Button(("A : " + to_string(XMConvertToDegrees(CMyTools::Get_Direction2D(vLook, { -m_vCameraRightDir.x , -m_vCameraRightDir.z })))).c_str(), { fButtonSize, fButtonSize }); GUI::SameLine(); - GUI::Button("##4", { fButtonSize, fButtonSize }); GUI::SameLine(); - GUI::Button(("D : " + to_string(XMConvertToDegrees(CMyTools::Get_Direction2D(vLook, { m_vCameraRightDir.x , m_vCameraRightDir.z })))).c_str(), { fButtonSize, fButtonSize }); - GUI::Button("##6", { fButtonSize, fButtonSize }); GUI::SameLine(); - GUI::Button(("S : " + to_string(XMConvertToDegrees(CMyTools::Get_Direction2D(vLook, { -m_vCameraLookDir.x , -m_vCameraLookDir.z })))).c_str(), { fButtonSize, fButtonSize }); GUI::SameLine(); - GUI::Button("##8", { fButtonSize, fButtonSize }); - //W CMyTools::Get_Direction2D(vLook, { m_vCameraLookDir.x , m_vCameraLookDir.z }) - //A CMyTools::Get_Direction2D(vLook, { -m_vCameraRightDir.x , - m_vCameraRightDir.z }) - //S CMyTools::Get_Direction2D(vLook, { m_vCameraRightDir.x , m_vCameraRightDir.z }) - //D CMyTools::Get_Direction2D(vLook, { -m_vCameraLookDir.x , - m_vCameraLookDir.z }) - } - GUI::End(); - m_Batch->DrawLine( // W - VertexPositionColor(fArrowLength * -XMLoadFloat3(&m_vCameraLookDir), DirectX::Colors::GhostWhite), - VertexPositionColor(fArrowLength * XMLoadFloat3(&m_vCameraLookDir), DirectX::Colors::Blue) - ); - m_Batch->DrawLine( // D - VertexPositionColor(fArrowLength * -XMLoadFloat3(&m_vCameraRightDir), DirectX::Colors::GhostWhite), - VertexPositionColor(fArrowLength * XMLoadFloat3(&m_vCameraRightDir), DirectX::Colors::Red) - ); - m_Batch->DrawLine( // PlayerLook - VertexPositionColor(XMVectorZero(), DirectX::Colors::GhostWhite), - VertexPositionColor(fArrowLength * xmvLook, DirectX::Colors::HotPink) - ); - m_Batch->End(); + // _float fButtonSize = 45.f; + // GUI::Button("##0", { fButtonSize, fButtonSize }); GUI::SameLine(); + // GUI::Button(("W : " + to_string(XMConvertToDegrees(CMyTools::Get_Direction2D(vLook, { m_vCameraLookDir.x , m_vCameraLookDir.z })))).c_str(), { fButtonSize, fButtonSize }); GUI::SameLine(); + // GUI::Button("##2", { fButtonSize, fButtonSize }); + // GUI::Button(("A : " + to_string(XMConvertToDegrees(CMyTools::Get_Direction2D(vLook, { -m_vCameraRightDir.x , -m_vCameraRightDir.z })))).c_str(), { fButtonSize, fButtonSize }); GUI::SameLine(); + // GUI::Button("##4", { fButtonSize, fButtonSize }); GUI::SameLine(); + // GUI::Button(("D : " + to_string(XMConvertToDegrees(CMyTools::Get_Direction2D(vLook, { m_vCameraRightDir.x , m_vCameraRightDir.z })))).c_str(), { fButtonSize, fButtonSize }); + // GUI::Button("##6", { fButtonSize, fButtonSize }); GUI::SameLine(); + // GUI::Button(("S : " + to_string(XMConvertToDegrees(CMyTools::Get_Direction2D(vLook, { -m_vCameraLookDir.x , -m_vCameraLookDir.z })))).c_str(), { fButtonSize, fButtonSize }); GUI::SameLine(); + // GUI::Button("##8", { fButtonSize, fButtonSize }); + // //W CMyTools::Get_Direction2D(vLook, { m_vCameraLookDir.x , m_vCameraLookDir.z }) + // //A CMyTools::Get_Direction2D(vLook, { -m_vCameraRightDir.x , - m_vCameraRightDir.z }) + // //S CMyTools::Get_Direction2D(vLook, { m_vCameraRightDir.x , m_vCameraRightDir.z }) + // //D CMyTools::Get_Direction2D(vLook, { -m_vCameraLookDir.x , - m_vCameraLookDir.z }) + //} + //GUI::End(); } +#endif + +#ifdef _DEBUG + void CPlayer::Describe_Entity() { GUI::Begin("UNIT", 0, IMGUI_GLOBAL_BEGIN_FLAG); diff --git a/Jusin154_Team3D/Client/Private/Ranrok.cpp b/Jusin154_Team3D/Client/Private/Ranrok.cpp index 5396d2b6a..c47a01dd2 100644 --- a/Jusin154_Team3D/Client/Private/Ranrok.cpp +++ b/Jusin154_Team3D/Client/Private/Ranrok.cpp @@ -326,7 +326,7 @@ HRESULT CRanrok::Render() hr = Render_Blend(); hr = S_OK; } -#ifdef _DEBUG +#ifdef RELEASE_DEBUGGER else if (RENDER::NONLIGHT == eCurrentPass) { hr = Render_Collider(); } @@ -790,7 +790,7 @@ HRESULT CRanrok::Ready_SubParts() m_pTargetableDO[i]->Set_Kinematic(true); } -#ifdef _DEBUG +#ifdef RELEASE_DEBUGGER m_pSubShape = (GeometricPrimitive::CreateSphere(m_pContext, 1.f, 6, false, false)); D3D11_DEPTH_STENCIL_DESC depthStencilDesc = {}; depthStencilDesc.DepthEnable = FALSE; @@ -802,7 +802,7 @@ HRESULT CRanrok::Ready_SubParts() if (FAILED(result)) { return E_FAIL; } -#endif // _DEBUG +#endif // RELEASE_DEBUGGER return S_OK; } HRESULT CRanrok::Render_Nonblend() @@ -850,19 +850,6 @@ HRESULT CRanrok::Render_Nonblend() Render_OutLine(); }*/ -#ifdef _DEBUG - if (true == m_pCharacter_Controller->IsActive()) { - if (FAILED(m_pCharacter_Controller->Render())) { - return E_FAIL; - } - } - else if (true == m_pRigidBody->IsActive()) { - if (FAILED(m_pRigidBody->Render())) { - return E_FAIL; - } - } -#endif - if (0.f < m_fDeadRatio) { _bool bDisolve = false; if (FAILED(m_pShaderCom->Bind_RawValue("g_bDisolve", &bDisolve, sizeof(_bool)))) { @@ -1357,9 +1344,9 @@ void CRanrok::Free() SAFE_RELEASE(m_pTargetableDO[i]); } m_pRanrok_Props.clear(); -#ifdef _DEBUG +#ifdef RELEASE_DEBUGGER SAFE_RELEASE(m_pDepthStencilStateNone); -#endif // _DEBUG +#endif // RELEASE_DEBUGGER SAFE_RELEASE(m_pMotionTrailCom); @@ -1496,22 +1483,29 @@ void CRanrok::Describe_Entity() GUI::End(); } +#endif // _DEBUG + +#ifdef RELEASE_DEBUGGER + HRESULT CRanrok::Render_Collider() { - static _bool s_bRenderCollider = { true }; - GUI::Begin("CutScene"); - if (GUI::TreeNode("RenderCollider")) { - if (true == s_bRenderCollider) { - for (_uint i = 0; i < ENUM_CLASS(RANROK_ENUM_BONEMATRICES::END); ++i) { - m_pTargetableDO[i]->Render([this]() { - m_pContext->OMSetDepthStencilState(m_pDepthStencilStateNone, 0); - }, CMyTools::ColorRGB_A_HEXtoVECTOR(0x00ff00, 1.f)); - } + if (true == m_pCharacter_Controller->IsActive()) { + if (FAILED(m_pCharacter_Controller->Render())) { + return E_FAIL; } - GUI::TreePop(); } - GUI::End(); + else if (true == m_pRigidBody->IsActive()) { + if (FAILED(m_pRigidBody->Render())) { + return E_FAIL; + } + } + + for (_uint i = 0; i < ENUM_CLASS(RANROK_ENUM_BONEMATRICES::END); ++i) { + m_pTargetableDO[i]->Render([this]() { + m_pContext->OMSetDepthStencilState(m_pDepthStencilStateNone, 0); + }, CMyTools::ColorRGB_A_HEXtoVECTOR(0x00ff00, 1.f)); + } return S_OK; } -#endif // _DEBUG +#endif // RELEASE_DEBUGGER diff --git a/Jusin154_Team3D/Client/Private/Troll.cpp b/Jusin154_Team3D/Client/Private/Troll.cpp index cfd4d9dee..606d50886 100644 --- a/Jusin154_Team3D/Client/Private/Troll.cpp +++ b/Jusin154_Team3D/Client/Private/Troll.cpp @@ -224,7 +224,7 @@ HRESULT CTroll::Render() Render_OutLine(); } -#ifdef _DEBUG +#ifdef RELEASE_DEBUGGER if (true == m_pCharacter_Controller->IsActive()) { if (FAILED(m_pCharacter_Controller->Render())) { return E_FAIL; diff --git a/Jusin154_Team3D/Client/Private/Troll_Weapon.cpp b/Jusin154_Team3D/Client/Private/Troll_Weapon.cpp index 8b2f348eb..8b768b175 100644 --- a/Jusin154_Team3D/Client/Private/Troll_Weapon.cpp +++ b/Jusin154_Team3D/Client/Private/Troll_Weapon.cpp @@ -45,10 +45,10 @@ HRESULT CTroll_Weapon::Initialize(void* pArg) m_pTransformCom->Set_WorldMatrix(socketMatrix * XMLoadFloat4x4(m_pParentTransformCom->Get_WorldMatrixPtr())); XMStoreFloat4x4(&m_HammerMatrix, XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("Bone")) * m_pTransformCom->Get_XMWorldMatrix()); -#ifdef _DEBUG +#ifdef RELEASE_DEBUGGER m_pGripShape = (GeometricPrimitive::CreateSphere(m_pContext, 1.f, 10, false, false)); m_pSubShape = (GeometricPrimitive::CreateSphere(m_pContext, 1.2f, 10, false, false)); -#endif // _DEBUG +#endif // RELEASE_DEBUGGER return S_OK; } @@ -120,10 +120,10 @@ HRESULT CTroll_Weapon::Render() } } -#ifdef _DEBUG +#ifdef RELEASE_DEBUGGER m_pGripShape->Draw(m_pTransformCom->Get_XMWorldMatrix(), m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW), m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ), DirectX::Colors::Green, nullptr, true); m_pSubShape->Draw(XMLoadFloat4x4(&m_HammerMatrix), m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW), m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ), DirectX::Colors::Purple, nullptr, true); -#endif // _DEBUG +#endif // RELEASE_DEBUGGER { _bool bDisolve = false; diff --git a/Jusin154_Team3D/Client/Public/Player.h b/Jusin154_Team3D/Client/Public/Player.h index 868de73ba..bb5d97ed4 100644 --- a/Jusin154_Team3D/Client/Public/Player.h +++ b/Jusin154_Team3D/Client/Public/Player.h @@ -61,9 +61,9 @@ class CPlayer final : public CUnit void Set_OriginPos(_vector vPos) { XMStoreFloat4(&m_OriginPos, vPos); } void Add_TurboBoost(_float fAmount); void ReSetNPC(); -#ifdef _DEBUG +#ifdef RELEASE_DEBUGGER void Render_CameraCoordinateSystem(); -#endif // _DEBUG +#endif // RELEASE_DEBUGGER private: CInfoInstance* m_pInfoInstance = { nullptr }; LOCKON_INFO m_LockOnInfo = {}; @@ -133,10 +133,10 @@ class CPlayer final : public CUnit void PlayFootStepSound(); void StopFootStepSound(); -#ifdef _DEBUG +#ifdef RELEASE_DEBUGGER unique_ptr m_BasicEffect; unique_ptr> m_Batch; -#endif // _DEBUG +#endif // RELEASE_DEBUGGER public: diff --git a/Jusin154_Team3D/Client/Public/Ranrok.h b/Jusin154_Team3D/Client/Public/Ranrok.h index 26bee2b95..af4ffa467 100644 --- a/Jusin154_Team3D/Client/Public/Ranrok.h +++ b/Jusin154_Team3D/Client/Public/Ranrok.h @@ -102,8 +102,11 @@ class CRanrok final : public CMonster virtual void Free() override; #ifdef _DEBUG virtual void Describe_Entity() override; - HRESULT Render_Collider(); #endif // _DEBUG +#ifdef RELEASE_DEBUGGER + HRESULT Render_Collider(); +#endif // RELEASE_DEBUGGER + private: virtual void Add_FSM(); @@ -178,13 +181,13 @@ class CRanrok final : public CMonster CRigidBody_Dynamic* m_pTargetableDO[ENUM_CLASS(RANROK_ENUM_BONEMATRICES::END)] = { nullptr }; -#ifdef _DEBUG +#ifdef RELEASE_DEBUGGER unique_ptr m_pSubShape = { nullptr }; ID3D11DepthStencilState* m_pDepthStencilStateNone = { nullptr }; _float4 m_vInitialRotQ = {}; _float3 m_vInitialTrans = {}; -#endif // _DEBUG +#endif // RELEASE_DEBUGGER void Behavior_IdleEnter(); diff --git a/Jusin154_Team3D/Client/Public/Troll_Weapon.h b/Jusin154_Team3D/Client/Public/Troll_Weapon.h index f86469cfb..772d52a7c 100644 --- a/Jusin154_Team3D/Client/Public/Troll_Weapon.h +++ b/Jusin154_Team3D/Client/Public/Troll_Weapon.h @@ -36,10 +36,10 @@ class CTroll_Weapon final : public CPartObject _float4x4 m_HammerMatrix = { }; _bool m_bDisolve = { false }; _float m_fDisolveTime = { 0.f }; -#ifdef _DEBUG +#ifdef RELEASE_DEBUGGER unique_ptr m_pGripShape = { nullptr }; unique_ptr m_pSubShape = { nullptr }; -#endif // _DEBUG +#endif // RELEASE_DEBUGGER private: virtual HRESULT Initialize_Prototype() override; diff --git a/Jusin154_Team3D/Engine/Private/Character_Controller.cpp b/Jusin154_Team3D/Engine/Private/Character_Controller.cpp index c15c524f7..bf45b69cb 100644 --- a/Jusin154_Team3D/Engine/Private/Character_Controller.cpp +++ b/Jusin154_Team3D/Engine/Private/Character_Controller.cpp @@ -16,10 +16,12 @@ CCharacter_Controller::CCharacter_Controller(const CCharacter_Controller& rhs) { } -#ifdef _DEBUG - +#ifdef RELEASE_DEBUGGER HRESULT CCharacter_Controller::Render() { + if (m_pGameInstance->IsRenderCollider()) { + return S_OK; + } _vector vPos = Get_Position(); _float3 vVolume = Get_Volume(); _matrix WorldMatrix = XMMatrixTranslationFromVector(vPos); @@ -65,7 +67,7 @@ void CCharacter_Controller::Set_Name(const _char* pName) { m_pController->getActor()->setName(pName); } -#endif // _DEBUG +#endif // RELEASE_DEBUGGER PSX::PxRigidDynamic* CCharacter_Controller::Get_Actor() { return m_pController->getActor(); @@ -411,16 +413,16 @@ HRESULT CCharacter_Controller::Initialize(void* pArg) return E_FAIL; } -#ifdef _DEBUG +#ifdef RELEASE_DEBUGGER if (FAILED(Debug_Initialize())) { return E_FAIL; } -#endif // _DEBUG +#endif // RELEASE_DEBUGGER return S_OK; } -#ifdef _DEBUG +#ifdef RELEASE_DEBUGGER HRESULT CCharacter_Controller::Debug_Initialize() { _float3 vVolume = Get_Volume(); @@ -438,7 +440,7 @@ HRESULT CCharacter_Controller::Debug_Initialize() } return S_OK; } -#endif // _DEBUG +#endif // RELEASE_DEBUGGER _bool CCharacter_Controller::Check_Overlap() diff --git a/Jusin154_Team3D/Engine/Private/GameInstance.cpp b/Jusin154_Team3D/Engine/Private/GameInstance.cpp index a9e0fd214..4a636da21 100644 --- a/Jusin154_Team3D/Engine/Private/GameInstance.cpp +++ b/Jusin154_Team3D/Engine/Private/GameInstance.cpp @@ -24,7 +24,6 @@ IMPLEMENT_SINGLETON(CGameInstance) - CGameInstance::CGameInstance() { } @@ -32,6 +31,7 @@ CGameInstance::CGameInstance() HRESULT CGameInstance::Initialize_Engine(const ENGINE_DESC& EngineDesc, ID3D11Device** ppDevice, ID3D11DeviceContext** ppContext) { g_iStaticLevel = EngineDesc.iStaticLevel; + m_bRenderCollider = true; m_pGraphic_Device = CGraphic_Device::Create(EngineDesc.hWnd, EngineDesc.iWinSizeX, EngineDesc.iWinSizeY, ppDevice, ppContext); if (nullptr == m_pGraphic_Device) { return E_FAIL; @@ -144,7 +144,6 @@ HRESULT CGameInstance::Initialize_Engine(const ENGINE_DESC& EngineDesc, ID3D11De void CGameInstance::Update_Engine(_float fTimeDelta) { - _float fExcuteTimeDelta = Update_SlowMotion(fTimeDelta); m_pKey_Manager->Update(); @@ -980,7 +979,7 @@ ID3D11ShaderResourceView* CGameInstance::Get_RenderTarget_SRV(const _wstring& st return m_pRenderTarget_Manager->Get_RenderTarget_SRV(strRenderTargetKey); } -#ifdef _DEBUG +#ifdef RELEASE_DEBUGGER void CGameInstance::RenderTarget_Debuger() { m_pRenderTarget_Manager->RenderTarget_Debuger(); @@ -990,7 +989,7 @@ HRESULT CGameInstance::Render_RenderTarget_Debug(CShader* pShader, CVIBuffer_Rec { return m_pRenderTarget_Manager->Render_RenderTarget_Debug(pShader, pVIBuffer); } -#endif // _DEBUG +#endif // RELEASE_DEBUGGER HRESULT CGameInstance::Clear_Cameras(_uint iLevel) { return m_pCamera_Manager->Clear_Cameras(iLevel); diff --git a/Jusin154_Team3D/Engine/Private/RenderTarget.cpp b/Jusin154_Team3D/Engine/Private/RenderTarget.cpp index 69be5e708..b62d0f219 100644 --- a/Jusin154_Team3D/Engine/Private/RenderTarget.cpp +++ b/Jusin154_Team3D/Engine/Private/RenderTarget.cpp @@ -47,7 +47,7 @@ HRESULT CRenderTarget::Initialize(_uint iSizeX, _uint iSizeY, DXGI_FORMAT ePixel m_vClearColor = vClearColor; -#ifdef _DEBUG +#ifdef RELEASE_DEBUGGER Ready_Debug(); #endif @@ -88,7 +88,7 @@ void CRenderTarget::Get_TextureDesc(D3D11_TEXTURE2D_DESC& Desc) { m_pTexture2D->GetDesc(&Desc); } -#ifdef _DEBUG +#ifdef RELEASE_DEBUGGER void CRenderTarget::Ready_Debug() { diff --git a/Jusin154_Team3D/Engine/Private/RenderTarget_Manager.cpp b/Jusin154_Team3D/Engine/Private/RenderTarget_Manager.cpp index 2526baffd..f4a2fd892 100644 --- a/Jusin154_Team3D/Engine/Private/RenderTarget_Manager.cpp +++ b/Jusin154_Team3D/Engine/Private/RenderTarget_Manager.cpp @@ -561,7 +561,7 @@ HRESULT CRenderTarget_Manager::Bind_RenderTarget(const _wstring& strTargetTag, C return pRenderTarget->Bind_ShaderResource(pShader, pConstantName); } -#ifdef _DEBUG +#ifdef RELEASE_DEBUGGER HRESULT CRenderTarget_Manager::Render_RenderTarget_Debug(CShader* pShader, CVIBuffer_Rect* pVIBuffer) { @@ -633,7 +633,7 @@ void CRenderTarget_Manager::Toggle_RT_Debugger() } } -#endif // _DEBUG +#endif // RELEASE_DEBUGGER CRenderTarget* CRenderTarget_Manager::Find_RenderTarget(const _wstring& strRenderTargetKey) { diff --git a/Jusin154_Team3D/Engine/Private/Renderer.cpp b/Jusin154_Team3D/Engine/Private/Renderer.cpp index b4c88bcda..9c7108fae 100644 --- a/Jusin154_Team3D/Engine/Private/Renderer.cpp +++ b/Jusin154_Team3D/Engine/Private/Renderer.cpp @@ -36,23 +36,26 @@ void CRenderer::Render() memcpy_s(&m_MotionBlurPreViewMatrix, sizeof(_float4x4), m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW), sizeof(_float4x4)); memcpy_s(&m_MotionBlurPreProjMatrix, sizeof(_float4x4), m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ), sizeof(_float4x4)); -#ifdef _DEBUG +#ifdef RELEASE_DEBUGGER static _bool m_bToggleDebug = false; - Describe_Entitiy(); - m_pGameInstance->RenderTarget_Debuger(); - GUI::Begin("RenderTarget Debuger", 0, IMGUI_GLOBAL_BEGIN_FLAG); - GUI::Checkbox("DebugToggle", &m_bToggleDebug); - - if (m_pGameInstance->Key_Pressing(DIK_F10)) { - Render_Debug(); + static _bool m_bRenderSystem = false; + if (m_pGameInstance->Key_Up(DIK_F6)) { + m_bRenderSystem = !m_bRenderSystem; } - else { + if (true == m_bRenderSystem) { + Describe_Entitiy(); + m_pGameInstance->RenderTarget_Debuger(); + GUI::Begin("RenderTarget Debuger", 0, IMGUI_GLOBAL_BEGIN_FLAG); + GUI::Checkbox("DebugToggle", &m_bToggleDebug); + if (m_bToggleDebug) { Render_Debug(); } + GUI::End(); + } + if (m_pGameInstance->Key_Pressing(DIK_F10)) { + Render_Debug(); } - GUI::End(); - #endif m_eType = RENDER::END; } @@ -1355,7 +1358,7 @@ void CRenderer::Render_Tone_Mapping() COMPUTE_TIMEDELTA("Timer_Render_Tone_Mapping"); } -#ifdef _DEBUG +#ifdef RELEASE_DEBUGGER void CRenderer::Render_Debug() { diff --git a/Jusin154_Team3D/Engine/Private/Renderer_Declare.cpp b/Jusin154_Team3D/Engine/Private/Renderer_Declare.cpp index 5aabb3598..895f24b2a 100644 --- a/Jusin154_Team3D/Engine/Private/Renderer_Declare.cpp +++ b/Jusin154_Team3D/Engine/Private/Renderer_Declare.cpp @@ -640,7 +640,7 @@ void CRenderer::Free() SAFE_RELEASE(m_pContext); SAFE_RELEASE(m_pGameInstance); } -#ifdef _DEBUG +#ifdef RELEASE_DEBUGGER void CRenderer::Describe_Entitiy() { GUI::Begin("SYSTEM", 0, IMGUI_GLOBAL_BEGIN_FLAG); @@ -700,9 +700,12 @@ void CRenderer::Describe_Entitiy() } if (GUI::CollapsingHeader("End_Padding")) { } +#ifdef _DEBUG if (GUI::Button("Refresh_Shader")) { m_pShader->Shader_Refresh(); } +#endif // _DEBUG + } GUI::End(); } diff --git a/Jusin154_Team3D/Engine/Private/RigidBody_Dynamic.cpp b/Jusin154_Team3D/Engine/Private/RigidBody_Dynamic.cpp index 5120169bf..19528766f 100644 --- a/Jusin154_Team3D/Engine/Private/RigidBody_Dynamic.cpp +++ b/Jusin154_Team3D/Engine/Private/RigidBody_Dynamic.cpp @@ -19,7 +19,7 @@ CRigidBody_Dynamic::CRigidBody_Dynamic(const CRigidBody_Dynamic& rhs) : { } -#ifdef _DEBUG +#ifdef RELEASE_DEBUGGER HRESULT CRigidBody_Dynamic::Render() { return Render(nullptr, CMyTools::ColorRGB_A_HEXtoVECTOR(0x2fc48000, 1.f)); @@ -31,6 +31,9 @@ HRESULT CRigidBody_Dynamic::Render(function custumState) } HRESULT CRigidBody_Dynamic::Render(function custumState, _fvector vColor) { + if (m_pGameInstance->IsRenderCollider()) { + return S_OK; + } if (m_pOwner->isDead()) return S_OK; PSX::PxTransform pxTranform = m_pRigidBody->getGlobalPose(); @@ -106,7 +109,7 @@ void CRigidBody_Dynamic::Set_HalfGeometryInfo(_float3 vhalfGeometryInfo) default: break; } -#ifdef _DEBUG +#ifdef RELEASE_DEBUGGER if (nullptr != m_pMainShape) { m_pMainShape.reset(); m_pMainShape = nullptr; @@ -116,7 +119,7 @@ void CRigidBody_Dynamic::Set_HalfGeometryInfo(_float3 vhalfGeometryInfo) m_pSubShape = nullptr; } Add_DebugShape(); -#endif // _DEBUG +#endif // RELEASE_DEBUGGER } void CRigidBody_Dynamic::Move_LocalPos(_matrix newLocalPos) { @@ -135,9 +138,9 @@ void CRigidBody_Dynamic::Move_LocalPos(_fvector vNewRotQ, _gvector vNewTranslati PSX::PxShape* pShape = { nullptr }; m_pRigidBody->getShapes(&pShape, m_pRigidBody->getNbShapes()); pShape->setLocalPose(PSX::PxTransform(PSX::PxVec3(m_vLocalTranslation.x, m_vLocalTranslation.y, m_vLocalTranslation.z), PSX::PxQuat(m_vLocalRotQ.x, m_vLocalRotQ.y, m_vLocalRotQ.z, m_vLocalRotQ.w))); -#ifdef _DEBUG +#ifdef RELEASE_DEBUGGER Add_DebugShape(); -#endif // _DEBUG +#endif // RELEASE_DEBUGGER } _float CRigidBody_Dynamic::Get_Mass() { @@ -382,11 +385,11 @@ HRESULT CRigidBody_Dynamic::Initialize(void* pArg) return E_FAIL; } -#ifdef _DEBUG +#ifdef RELEASE_DEBUGGER if (FAILED(Add_DebugShape())) { return E_FAIL; } -#endif // _DEBUG +#endif // RELEASE_DEBUGGER RIGIDBODY_DYNAMIC_DESC* pDesc = static_cast(pArg); m_tagData.pOwner = m_pOwner; XMStoreFloat4x4(&m_tagData.BeforeMatrix, m_pTransform->Get_XMWorldMatrix()); @@ -428,7 +431,7 @@ _bool CRigidBody_Dynamic::IsKinematic() // } //} -#ifdef _DEBUG +#ifdef RELEASE_DEBUGGER HRESULT CRigidBody_Dynamic::Add_DebugShape() { if(nullptr != m_pMainShape) @@ -452,7 +455,7 @@ HRESULT CRigidBody_Dynamic::Add_DebugShape() } return S_OK; } -#endif // _DEBUG +#endif // RELEASE_DEBUGGER CRigidBody_Dynamic* CRigidBody_Dynamic::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, RIGIDBODY_PROTOTYPE_DYNAMIC_DESC& Desc) { CRigidBody_Dynamic* pInstance = new CRigidBody_Dynamic(pDevice, pContext); diff --git a/Jusin154_Team3D/Engine/Public/Character_Controller.h b/Jusin154_Team3D/Engine/Public/Character_Controller.h index 2b88293d0..850d805de 100644 --- a/Jusin154_Team3D/Engine/Public/Character_Controller.h +++ b/Jusin154_Team3D/Engine/Public/Character_Controller.h @@ -47,7 +47,7 @@ class ENGINE_DLL CCharacter_Controller final : virtual ~CCharacter_Controller() = default; public: -#ifdef _DEBUG +#ifdef RELEASE_DEBUGGER virtual HRESULT Render() override; virtual void Set_Name(const _char* pName); #endif @@ -101,18 +101,19 @@ class ENGINE_DLL CCharacter_Controller final : _bool m_bActive = { true }; _bool m_bGravity = { true }; _bool m_bSlide = { false }; - _float3 m_vLastClimbNormal = { 0.f, 1.f - FLT_EPSILON, 0.f };; -#ifdef _DEBUG + _float3 m_vLastClimbNormal = { 0.f, 1.f - FLT_EPSILON, 0.f }; + +#ifdef RELEASE_DEBUGGER unique_ptr m_pMainShape = { nullptr }; unique_ptr m_pSubShape = { nullptr }; -#endif // _DEBUG +#endif // RELEASE_DEBUGGER private: virtual HRESULT Initialize_Prototype() override; virtual HRESULT Initialize(void* pArg) override; -#ifdef _DEBUG +#ifdef RELEASE_DEBUGGER virtual HRESULT Debug_Initialize(); -#endif // _DEBUG +#endif // RELEASE_DEBUGGER _bool Check_Overlap(); diff --git a/Jusin154_Team3D/Engine/Public/Engine_Define.h b/Jusin154_Team3D/Engine/Public/Engine_Define.h index 972d28f49..efba3c518 100644 --- a/Jusin154_Team3D/Engine/Public/Engine_Define.h +++ b/Jusin154_Team3D/Engine/Public/Engine_Define.h @@ -14,7 +14,6 @@ NS_BEGIN(Engine) static _uint g_iStaticLevel; - NS_END USING(Engine); diff --git a/Jusin154_Team3D/Engine/Public/Engine_Macro.h b/Jusin154_Team3D/Engine/Public/Engine_Macro.h index 6d084ea41..144f4c450 100644 --- a/Jusin154_Team3D/Engine/Public/Engine_Macro.h +++ b/Jusin154_Team3D/Engine/Public/Engine_Macro.h @@ -14,6 +14,17 @@ #define PSX physx #endif // !PSX + +#ifdef _DEBUG +#define RELEASE_DEBUGGER +#endif // _DEBUG +#ifndef _DEBUG +#define RELEASE_DEBUGGER +#endif // !_DEBUG + + + + #pragma region ProgrammerInfo #define ASSERT_NURI(expression) diff --git a/Jusin154_Team3D/Engine/Public/GameInstance.h b/Jusin154_Team3D/Engine/Public/GameInstance.h index 9911840c0..a956becc9 100644 --- a/Jusin154_Team3D/Engine/Public/GameInstance.h +++ b/Jusin154_Team3D/Engine/Public/GameInstance.h @@ -27,7 +27,11 @@ class ENGINE_DLL CGameInstance final : public CBase _float2 Get_ViewPortSize(); void BillBoard(CTransform* pTransform); void SlowMotion(_float fSlowIntense, _float fTime); - +#ifdef RELEASE_DEBUGGER + _bool IsRenderCollider() { return m_bRenderCollider; } + void Set_RenderCollider(_bool bRender) { m_bRenderCollider = bRender; } + void Toggle_RenderCollider() { m_bRenderCollider = !m_bRenderCollider; } +#endif RELEASE_DEBUGGER #pragma region GRAPHIC_DEVICE public: void Render_Begin(const _float4* pClearColor); @@ -192,10 +196,10 @@ class ENGINE_DLL CGameInstance final : public CBase HRESULT Bind_CS_RenderTarget(_uint iIndex, const _wstring& strTargetTag); HRESULT Clear_RenderTarget(const _wstring& strRenderTargetKey); ID3D11ShaderResourceView* Get_RenderTarget_SRV(const _wstring& strRenderTargetKey); -#ifdef _DEBUG +#ifdef RELEASE_DEBUGGER void RenderTarget_Debuger(); HRESULT Render_RenderTarget_Debug(class CShader* pShader, class CVIBuffer_Rect* pVIBuffer); -#endif // _DEBUG +#endif // RELEASE_DEBUGGER #pragma endregion #pragma region CAMERA_MANAGER HRESULT Clear_Cameras(_uint iLevel); @@ -386,6 +390,9 @@ class ENGINE_DLL CGameInstance final : public CBase map m_ModelMap; #endif // _DEBUG + _bool m_bRenderCollider = false; + _bool m_bRenderSystem = false; + map m_sModelMap; public: void Release_Engine(); diff --git a/Jusin154_Team3D/Engine/Public/RenderTarget.h b/Jusin154_Team3D/Engine/Public/RenderTarget.h index 0761461e9..b85ca356b 100644 --- a/Jusin154_Team3D/Engine/Public/RenderTarget.h +++ b/Jusin154_Team3D/Engine/Public/RenderTarget.h @@ -23,7 +23,7 @@ class CRenderTarget final : public CBase void Copy_ResourceFrom(const CRenderTarget& Target); void Get_TextureDesc(D3D11_TEXTURE2D_DESC& Desc); -#ifdef _DEBUG +#ifdef RELEASE_DEBUGGER public: _bool Render_Debug(class CShader* pShader, class CVIBuffer_Rect* pVIBuffer, _float fX, _float fY, _float fSizeX, _float fSizeY); void Ready_Debug(); @@ -41,7 +41,7 @@ class CRenderTarget final : public CBase ID3D11ShaderResourceView* m_pSRV = { nullptr }; _float4 m_vClearColor = {}; -#ifdef _DEBUG +#ifdef RELEASE_DEBUGGER private: _float4x4 m_WorldMatrix = {}; _point m_ptWindowSize = {}; diff --git a/Jusin154_Team3D/Engine/Public/RenderTarget_Manager.h b/Jusin154_Team3D/Engine/Public/RenderTarget_Manager.h index 31212508f..b128a3365 100644 --- a/Jusin154_Team3D/Engine/Public/RenderTarget_Manager.h +++ b/Jusin154_Team3D/Engine/Public/RenderTarget_Manager.h @@ -32,18 +32,18 @@ class CRenderTarget_Manager final : public CBase void Flush_All_SRVs(_uint iStartSlot = 0, _uint numSlots = D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT); void Flush_All_CSUAVs(_uint iStartSlot = 0, _uint numSlots = D3D11_PS_CS_UAV_REGISTER_COUNT); -#ifdef _DEBUG +#ifdef RELEASE_DEBUGGER public: HRESULT Render_RenderTarget_Debug(class CShader* pShader, class CVIBuffer_Rect* pVIBuffer); void RenderTarget_Debuger(); void Toggle_RT_Debugger(); -#endif // _DEBUG +#endif // RELEASE_DEBUGGER -#ifdef _DEBUG +#ifdef RELEASE_DEBUGGER private: _int m_iSizeX = { 350 }; _int m_iSizeY = { 350 }; -#endif // _DEBUG +#endif // RELEASE_DEBUGGER private: ID3D11Device* m_pDevice = { nullptr }; diff --git a/Jusin154_Team3D/Engine/Public/Renderer.h b/Jusin154_Team3D/Engine/Public/Renderer.h index 205d0e9ea..3ab156185 100644 --- a/Jusin154_Team3D/Engine/Public/Renderer.h +++ b/Jusin154_Team3D/Engine/Public/Renderer.h @@ -36,7 +36,7 @@ class CRenderer final : public CBase #endif // _DEBUG -#ifdef _DEBUG +#ifdef RELEASE_DEBUGGER private: list m_DebugComponents; #endif @@ -142,7 +142,7 @@ class CRenderer final : public CBase void Render_UI_Overley(); -#ifdef _DEBUG +#ifdef RELEASE_DEBUGGER private: void Render_Debug(); #endif @@ -156,9 +156,9 @@ class CRenderer final : public CBase public: static CRenderer* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual void Free(); -#ifdef _DEBUG +#ifdef RELEASE_DEBUGGER virtual void Describe_Entitiy(); -#endif // _DEBUG +#endif // RELEASE_DEBUGGER }; diff --git a/Jusin154_Team3D/Engine/Public/RigidBody_Dynamic.h b/Jusin154_Team3D/Engine/Public/RigidBody_Dynamic.h index 60782dd23..085bf0a1c 100644 --- a/Jusin154_Team3D/Engine/Public/RigidBody_Dynamic.h +++ b/Jusin154_Team3D/Engine/Public/RigidBody_Dynamic.h @@ -28,12 +28,12 @@ class ENGINE_DLL CRigidBody_Dynamic : public CRigidBody virtual ~CRigidBody_Dynamic() = default; public: -#ifdef _DEBUG +#ifdef RELEASE_DEBUGGER _float3 Get_LocalTranslation() {return m_vLocalTranslation; } virtual HRESULT Render()override; HRESULT Render(function custumState); HRESULT Render(function custumState, _fvector vColor); -#endif // _DEBUG +#endif // RELEASE_DEBUGGER virtual PSX::PxRigidDynamic* Get_Actor() override { return m_pRigidBody; }; void Set_Name(const _char* szName); @@ -85,10 +85,10 @@ class ENGINE_DLL CRigidBody_Dynamic : public CRigidBody _float m_fDensity = { 1000.f }; _bool m_bActive = { true }; -#ifdef _DEBUG +#ifdef RELEASE_DEBUGGER unique_ptr m_pMainShape = { nullptr }; unique_ptr m_pSubShape = { nullptr }; -#endif // _DEBUG +#endif // RELEASE_DEBUGGER private: HRESULT Initialize_Prototype(RIGIDBODY_PROTOTYPE_DYNAMIC_DESC& Desc); @@ -96,7 +96,7 @@ class ENGINE_DLL CRigidBody_Dynamic : public CRigidBody // void Move(PSX::PxTransform& pxTransform, _bool bTeleport); _bool IsKinematic(); -#ifdef _DEBUG +#ifdef RELEASE_DEBUGGER HRESULT Add_DebugShape(); #endif diff --git a/Jusin154_Team3D/Update_Lib.bat b/Jusin154_Team3D/Update_Lib.bat index 76d78382e..816e2e238 100644 --- a/Jusin154_Team3D/Update_Lib.bat +++ b/Jusin154_Team3D/Update_Lib.bat @@ -59,5 +59,6 @@ xcopy /y .\Engine\ThirdPartyLib\fMod\fmod_vc.lib .\EngineSDK\Lib\Debug\ xcopy /y .\Engine\ThirdPartyLib\fMod\fmod_vc.lib .\EngineSDK\Lib\Release\ xcopy /y .\Engine\ThirdPartyLib\DirectXTK\DirectXTKd.lib .\EngineSDK\Lib\Debug\ +xcopy /y .\Engine\ThirdPartyLib\DirectXTK\DirectXTK.lib .\EngineSDK\Lib\Release\ xcopy /y .\Engine\ThirdPartyLib\PhysX\PhysX_debug\*.lib .\EngineSDK\Lib\Debug\ xcopy /y .\Engine\ThirdPartyLib\PhysX\PhysX_release\*.lib .\EngineSDK\Lib\Release\