[fix] release
This commit is contained in:
@@ -59,7 +59,10 @@ void CBroom::Update(_float fTimeDelta)
|
|||||||
|
|
||||||
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
|
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
|
||||||
|
|
||||||
|
#ifdef _DEBUG
|
||||||
Describe_Entity();
|
Describe_Entity();
|
||||||
|
#endif // _DEBUG
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CBroom::Late_Update(_float fTimeDelta)
|
void CBroom::Late_Update(_float fTimeDelta)
|
||||||
|
|||||||
@@ -110,9 +110,9 @@ HRESULT CLevel_GamePlay::Ready_Background()
|
|||||||
|
|
||||||
/* Map Containters */
|
/* Map Containters */
|
||||||
/* 테스트용 맵 */
|
/* 테스트용 맵 */
|
||||||
CInfoInstance::GetInstance()->Load_MapObjects("ClientTest");
|
// CInfoInstance::GetInstance()->Load_MapObjects("ClientTest");
|
||||||
/* 전체 맵 */
|
/* 전체 맵 */
|
||||||
// CInfoInstance::GetInstance()->Load_MapObjects("Map1124");
|
CInfoInstance::GetInstance()->Load_MapObjects("Map1129");
|
||||||
|
|
||||||
|
|
||||||
CInstancedProp::INSTANCE_PROP_DESC Desc = {};
|
CInstancedProp::INSTANCE_PROP_DESC Desc = {};
|
||||||
|
|||||||
@@ -727,16 +727,16 @@ HRESULT CGameInstance::SaveTriMeshes(const _char* pPath, vector<PSX::PxTriangleM
|
|||||||
{
|
{
|
||||||
return m_pPhysX_Manager->SaveTriMeshes(pPath, TriMeshes);
|
return m_pPhysX_Manager->SaveTriMeshes(pPath, TriMeshes);
|
||||||
}
|
}
|
||||||
|
void CGameInstance::Add_Editor_Plane(PhsXUserData& PlaneData)
|
||||||
|
{
|
||||||
|
m_pPhysX_Manager->Add_Editor_Plane(PlaneData);
|
||||||
|
}
|
||||||
#endif // EDITOR_PROJECT
|
#endif // EDITOR_PROJECT
|
||||||
|
|
||||||
HRESULT CGameInstance::LoadTriMeshes(const _char* pPath, vector<PSX::PxTriangleMesh*>& TriMeshes)
|
HRESULT CGameInstance::LoadTriMeshes(const _char* pPath, vector<PSX::PxTriangleMesh*>& TriMeshes)
|
||||||
{
|
{
|
||||||
return m_pPhysX_Manager->LoadTriMeshes(pPath, TriMeshes);
|
return m_pPhysX_Manager->LoadTriMeshes(pPath, TriMeshes);
|
||||||
}
|
}
|
||||||
void CGameInstance::Add_Editor_Plane(PhsXUserData& PlaneData)
|
|
||||||
{
|
|
||||||
m_pPhysX_Manager->Add_Editor_Plane(PlaneData);
|
|
||||||
}
|
|
||||||
#pragma endregion
|
#pragma endregion
|
||||||
|
|
||||||
#pragma region FOG
|
#pragma region FOG
|
||||||
|
|||||||
@@ -477,18 +477,26 @@ HRESULT CPhysX_Manager::Initialize()
|
|||||||
assert(false);
|
assert(false);
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
#ifdef _DEBUG
|
||||||
|
|
||||||
if (FAILED(Connect_DebugServer())) {
|
if (FAILED(Connect_DebugServer())) {
|
||||||
//ASSERT_NURI(false);
|
//ASSERT_NURI(false);
|
||||||
//ASSERT_JINWOO(false);
|
//ASSERT_JINWOO(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // _DEBUG
|
||||||
|
|
||||||
{ // 씬 세팅
|
{ // 씬 세팅
|
||||||
m_ToleranceScale.length = 1.f; // 1 meter
|
m_ToleranceScale.length = 1.f; // 1 meter
|
||||||
m_ToleranceScale.speed = GRAVITY; //
|
m_ToleranceScale.speed = GRAVITY; //
|
||||||
|
|
||||||
|
#ifdef _DEBUG
|
||||||
m_pPhysics = PxCreatePhysics(PX_PHYSICS_VERSION, *m_pFoundation, m_ToleranceScale, true, m_pPvd);
|
m_pPhysics = PxCreatePhysics(PX_PHYSICS_VERSION, *m_pFoundation, m_ToleranceScale, true, m_pPvd);
|
||||||
|
#endif // _DEBUG
|
||||||
|
#ifndef _DEBUG
|
||||||
|
m_pPhysics = PxCreatePhysics(PX_PHYSICS_VERSION, *m_pFoundation, m_ToleranceScale, true);
|
||||||
|
#endif // _DEBUG
|
||||||
|
|
||||||
|
|
||||||
m_pCookingParam = new PSX::PxCookingParams(m_pPhysics->getTolerancesScale());
|
m_pCookingParam = new PSX::PxCookingParams(m_pPhysics->getTolerancesScale());
|
||||||
m_pCookingParam->meshPreprocessParams |= PSX::PxMeshPreprocessingFlag::eWELD_VERTICES;
|
m_pCookingParam->meshPreprocessParams |= PSX::PxMeshPreprocessingFlag::eWELD_VERTICES;
|
||||||
@@ -565,6 +573,7 @@ HRESULT CPhysX_Manager::Initialize()
|
|||||||
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
#ifdef _DEBUG
|
||||||
|
|
||||||
HRESULT CPhysX_Manager::Connect_DebugServer()
|
HRESULT CPhysX_Manager::Connect_DebugServer()
|
||||||
{
|
{
|
||||||
@@ -587,6 +596,8 @@ HRESULT CPhysX_Manager::Connect_DebugServer()
|
|||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // _DEBUG
|
||||||
|
|
||||||
CPhysX_Manager* CPhysX_Manager::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
CPhysX_Manager* CPhysX_Manager::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||||
{
|
{
|
||||||
CPhysX_Manager* pInstance = new CPhysX_Manager(pDevice, pContext);
|
CPhysX_Manager* pInstance = new CPhysX_Manager(pDevice, pContext);
|
||||||
@@ -640,12 +651,15 @@ void CPhysX_Manager::Free()
|
|||||||
if (nullptr != m_pPhysics) {
|
if (nullptr != m_pPhysics) {
|
||||||
m_pPhysics->release(); m_pPhysics = nullptr;
|
m_pPhysics->release(); m_pPhysics = nullptr;
|
||||||
}
|
}
|
||||||
|
#ifdef _DEBUG
|
||||||
|
|
||||||
if (nullptr != m_pPvd) {
|
if (nullptr != m_pPvd) {
|
||||||
m_pPvd->disconnect();
|
m_pPvd->disconnect();
|
||||||
m_pPvd->release(); m_pPvd = nullptr;
|
m_pPvd->release(); m_pPvd = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // _DEBUG
|
||||||
|
|
||||||
if (nullptr != m_pTransport) {
|
if (nullptr != m_pTransport) {
|
||||||
m_pTransport->release(); m_pTransport = nullptr;
|
m_pTransport->release(); m_pTransport = nullptr;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -181,8 +181,10 @@ void CTrail::Trail_Update(_float fDeltaTime, _fmatrix WorldMatrix)
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
#ifdef _DEBUG
|
||||||
Describe_Entity();
|
Describe_Entity();
|
||||||
|
#endif // _DEBUG
|
||||||
|
|
||||||
|
|
||||||
//XMStoreFloat3(&m_pVertices[0].vPosition, vLow);
|
//XMStoreFloat3(&m_pVertices[0].vPosition, vLow);
|
||||||
//XMStoreFloat3(&m_pVertices[1].vPosition, vHigh);
|
//XMStoreFloat3(&m_pVertices[1].vPosition, vHigh);
|
||||||
|
|||||||
@@ -102,7 +102,10 @@ class CPhysX_Manager final : public CBase
|
|||||||
_uint m_iNumLevel = {};
|
_uint m_iNumLevel = {};
|
||||||
private:
|
private:
|
||||||
HRESULT Initialize();
|
HRESULT Initialize();
|
||||||
|
#ifdef _DEBUG
|
||||||
HRESULT Connect_DebugServer();
|
HRESULT Connect_DebugServer();
|
||||||
|
#endif // _DEBUG
|
||||||
|
|
||||||
void Update_Kinematic();
|
void Update_Kinematic();
|
||||||
void Update_Dynamic_ActiveActors();
|
void Update_Dynamic_ActiveActors();
|
||||||
//void Update_Dynamic_AllActors();
|
//void Update_Dynamic_AllActors();
|
||||||
|
|||||||
Reference in New Issue
Block a user