[add] ReleasePatch

This commit is contained in:
kimnuri
2026-01-07 11:40:59 +09:00
parent 319ad176ed
commit 136a13b8e1
3 changed files with 55 additions and 14 deletions
@@ -537,6 +537,7 @@ void CPlayerRobe::Free()
for (_uint i = 0; i < ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::END); ++i) {
SAFE_RELEASE(m_pRobeJointAnchor[i]);
}
#ifdef _DEBUG
if (nullptr != m_pMainShape) {
m_pMainShape.release();
m_pMainShape = nullptr;
@@ -545,4 +546,6 @@ void CPlayerRobe::Free()
m_pSubShape.release();
m_pSubShape = nullptr;
}
#endif // _DEBUG
}
@@ -344,29 +344,64 @@ HRESULT CLoader::Loading_For_ObjectViewer()
//futures.emplace_back(Deferred_ModelLoad(
// MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Protego.fbx", XMMatrixIdentity(),
// MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_AvadaKedavra.fbx", XMMatrixIdentity(),
// TEXT("Prototype_Component_Student_Cmbt_Model")
//));
//futures.emplace_back(Deferred_ModelLoad(
// MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Spell_Learning.fbx", XMMatrixIdentity(),
// MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Bm.fbx", XMMatrixIdentity(),
// TEXT("Prototype_Component_Student_Cmbt_Model")
//));
//futures.emplace_back(Deferred_ModelLoad(
// MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Broom.fbx", XMMatrixIdentity(),
// TEXT("Prototype_Component_Student_Cmbt_Model")
//));
futures.emplace_back(Deferred_ModelLoad(
MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", /*XMMatrixRotationZ(XMConvertToRadians(180.f))* */XMMatrixIdentity(),
TEXT("Prototype_Component_Playable_Model")
));
//futures.emplace_back(Deferred_ModelLoad(
// MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Cmbt.fbx", XMMatrixIdentity(),
// TEXT("Prototype_Component_Student_Cmbt_Model")
//));
//futures.emplace_back(Deferred_ModelLoad(
// MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Lightning.fbx", XMMatrixIdentity(),
// TEXT("Prototype_Component_Playable_Model")
//));
//futures.emplace_back(Deferred_ModelLoad(
// MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_OpenDoor.fbx", XMMatrixIdentity(),
// TEXT("Prototype_Component_Playable_Model")
//));
//futures.emplace_back(Deferred_ModelLoad(
// MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Protego.fbx", XMMatrixIdentity(),
// TEXT("Prototype_Component_Playable_Model")
//));
//futures.emplace_back(Deferred_ModelLoad(
// MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Rct.fbx", XMMatrixIdentity(),
// TEXT("Prototype_Component_Playable_Model")
//));
//futures.emplace_back(Deferred_ModelLoad(
// MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Sneak.fbx", XMMatrixIdentity(),
// TEXT("Prototype_Component_Playable_Model")
//));
//futures.emplace_back(Deferred_ModelLoad(
// MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Spawn.fbx", XMMatrixIdentity(),
// TEXT("Prototype_Component_Student_Cmbt_Model")
// TEXT("Prototype_Component_Playable_Model")
//));
futures.emplace_back(Deferred_ModelLoad(
MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationZ(XMConvertToRadians(180.f))* XMMatrixIdentity(),
TEXT("Prototype_Component_Playable_Model")
));
futures.emplace_back(Deferred_ModelLoad(
MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_OpenDoor.fbx", XMMatrixIdentity(),
TEXT("Prototype_Component_Student_Cmbt_Model")
));
//futures.emplace_back(Deferred_ModelLoad(
// MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Spell_Learning.fbx", XMMatrixIdentity(),
// TEXT("Prototype_Component_Playable_Model")
//));
//futures.emplace_back(Deferred_ModelLoad(
// MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.fbx", XMMatrixIdentity(),
+5 -2
View File
@@ -280,9 +280,10 @@ HRESULT CMesh::Ready_VertexBuffer_For_NonAnim(SaveMesh* SaveMesh, _fmatrix PreTr
m_pVertexPositions = new _float3[m_iNumVertices];
ZeroMemory(m_pVertexPositions, sizeof(_float3) * m_iNumVertices);
#ifdef _DEBUG
m_VertexTexcoords = new _float2[m_iNumVertices];
ZeroMemory(m_VertexTexcoords, sizeof(_float2) * m_iNumVertices);
#endif // _DEBUG
for (_uint i = 0; i < m_iNumVertices; ++i)
{
@@ -302,9 +303,11 @@ HRESULT CMesh::Ready_VertexBuffer_For_NonAnim(SaveMesh* SaveMesh, _fmatrix PreTr
memcpy(&pVertices[i].vBinormal, &SaveMesh->Vertices[i].BiNoraml, sizeof(_float3));
XMStoreFloat3(&pVertices[i].vBinormal,
XMVector3Normalize(XMVector3TransformNormal(XMLoadFloat3(&pVertices[i].vBinormal), PreTransformMatrix)));
#ifdef _DEBUG
pVertices[i].vTexcoord = SaveMesh->Vertices[i].UV;
memcpy(&m_VertexTexcoords[i], &pVertices[i].vTexcoord, sizeof(_float2));
#endif // _DEBUG
}
D3D11_SUBRESOURCE_DATA InitialVBData{};