[add] Qcculsion Client 적용

[add] MapContainer 분리
This commit is contained in:
Chanbin Kim
2025-11-29 16:21:12 +09:00
parent 1c39c02f9b
commit 02305c9d74
12 changed files with 397 additions and 292 deletions
@@ -24,16 +24,21 @@ void CBuildingContainer::Update(_float fTimeDelta)
{ {
__super::Update(fTimeDelta); __super::Update(fTimeDelta);
m_fCamDepth = XMVectorGetX(XMVector3Length(XMLoadFloat4(m_pGameInstance->Get_CamPosition()) - XMLoadFloat3(&m_vExtentWorldPosition)));
for (auto& pCollisiton : m_ColiisonPartObjects) for (auto& pCollisiton : m_ColiisonPartObjects)
pCollisiton->Update(fTimeDelta); pCollisiton->Update(fTimeDelta);
} }
void CBuildingContainer::Late_Update(_float fTimeDelta) void CBuildingContainer::Late_Update(_float fTimeDelta)
{ {
__super::Late_Update(fTimeDelta); if (m_pOcclusionQueryCom->isDraw())
__super::Late_Update(fTimeDelta);
for (auto& pCollisiton : m_ColiisonPartObjects) for (auto& pCollisiton : m_ColiisonPartObjects)
pCollisiton->Late_Update(fTimeDelta); pCollisiton->Late_Update(fTimeDelta);
m_pGameInstance->Add_RenderGroup(RENDER::OCCLUSION, this);
} }
HRESULT CBuildingContainer::Render() HRESULT CBuildingContainer::Render()
@@ -41,6 +46,38 @@ HRESULT CBuildingContainer::Render()
return S_OK; return S_OK;
} }
HRESULT CBuildingContainer::Render_BoundingBox()
{
/* Begin_Query, End_Query 사이에 Render */
m_pOcclusionQueryCom->Begin_Query();
if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Begin(0)))
return E_FAIL;
if (FAILED(m_pVIBufferCom->Bind_Resources()))
return E_FAIL;
if (FAILED(m_pVIBufferCom->Render()))
return E_FAIL;
m_pOcclusionQueryCom->End_Query();
return S_OK;
}
HRESULT CBuildingContainer::Initialize_Prototype() HRESULT CBuildingContainer::Initialize_Prototype()
{ {
return S_OK; return S_OK;
@@ -62,6 +99,8 @@ HRESULT CBuildingContainer::Initialize(void* pArg)
m_pTransformCom->Set_Scale(pDesc->vScale); m_pTransformCom->Set_Scale(pDesc->vScale);
m_pTransformCom->Rotation(XMConvertToRadians(pDesc->vRotation.x), XMConvertToRadians(pDesc->vRotation.y), XMConvertToRadians(pDesc->vRotation.z)); m_pTransformCom->Rotation(XMConvertToRadians(pDesc->vRotation.x), XMConvertToRadians(pDesc->vRotation.y), XMConvertToRadians(pDesc->vRotation.z));
XMStoreFloat3(&m_vExtentWorldPosition, XMVector3TransformCoord(XMLoadFloat3(&m_vExtentWorldPosition), m_pTransformCom->Get_XMWorldMatrix()));
return S_OK; return S_OK;
} }
@@ -71,6 +110,44 @@ HRESULT CBuildingContainer::Ready_Components(void* pArg)
return E_FAIL; return E_FAIL;
} }
/* Com_Shader */
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_VTXPOS,
reinterpret_cast<CComponent**>(&m_pShaderCom))))
return E_FAIL;
MAP_CONTAINER_DESC* pDesc = static_cast<MAP_CONTAINER_DESC*>(pArg);
_float3 vBoxCorners[8] = {};
vBoxCorners[0] = _float3(pDesc->vContainerMin.x, pDesc->vContainerMax.y, pDesc->vContainerMin.z);
vBoxCorners[1] = _float3(pDesc->vContainerMax.x, pDesc->vContainerMax.y, pDesc->vContainerMin.z);
vBoxCorners[2] = _float3(pDesc->vContainerMax.x, pDesc->vContainerMin.y, pDesc->vContainerMin.z);
vBoxCorners[3] = _float3(pDesc->vContainerMin.x, pDesc->vContainerMin.y, pDesc->vContainerMin.z);
vBoxCorners[4] = _float3(pDesc->vContainerMin.x, pDesc->vContainerMax.y, pDesc->vContainerMax.z);
vBoxCorners[5] = _float3(pDesc->vContainerMax.x, pDesc->vContainerMax.y, pDesc->vContainerMax.z);
vBoxCorners[6] = _float3(pDesc->vContainerMax.x, pDesc->vContainerMin.y, pDesc->vContainerMax.z);
vBoxCorners[7] = _float3(pDesc->vContainerMin.x, pDesc->vContainerMin.y, pDesc->vContainerMax.z);
_float3 vRadius = {};
vRadius.x = (pDesc->vContainerMax.x - pDesc->vContainerMin.x) * 0.5f;
vRadius.y = (pDesc->vContainerMax.y - pDesc->vContainerMin.y) * 0.5f;
vRadius.z = (pDesc->vContainerMax.z - pDesc->vContainerMin.z) * 0.5f;
m_vExtentWorldPosition.x = pDesc->vContainerMin.x + vRadius.x;
m_vExtentWorldPosition.y = pDesc->vContainerMin.y + vRadius.y;
m_vExtentWorldPosition.z = pDesc->vContainerMin.z + vRadius.z;
/* Com_VIBuffer */
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Box"),
reinterpret_cast<CComponent**>(&m_pVIBufferCom), &vBoxCorners)))
return E_FAIL;
/* Com_OcclusionQuery */
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_OcclusionQuery"),
reinterpret_cast<CComponent**>(&m_pOcclusionQueryCom))))
return E_FAIL;
return S_OK; return S_OK;
} }
@@ -109,6 +186,10 @@ void CBuildingContainer::Free()
{ {
__super::Free(); __super::Free();
SAFE_RELEASE(m_pShaderCom);
SAFE_RELEASE(m_pVIBufferCom);
SAFE_RELEASE(m_pOcclusionQueryCom);
for (auto& pCollision : m_ColiisonPartObjects) for (auto& pCollision : m_ColiisonPartObjects)
SAFE_RELEASE(pCollision); SAFE_RELEASE(pCollision);
} }
+11
View File
@@ -72,6 +72,7 @@
#include "VIBuffer_Terrain.h" #include "VIBuffer_Terrain.h"
#include "VIBuffer_Model_Instance.h" #include "VIBuffer_Model_Instance.h"
#include "BuildingContainer.h" #include "BuildingContainer.h"
#include "StreetContainer.h"
#include "MapObject_Render.h" #include "MapObject_Render.h"
#include "MapObject_Collision.h" #include "MapObject_Collision.h"
#include "InstancedProp.h" #include "InstancedProp.h"
@@ -458,6 +459,12 @@ HRESULT CLoader::Loading_For_GamePlay()
m_strMessage = TEXT("셰이더를(을) 로딩 중 입니다."); m_strMessage = TEXT("셰이더를(을) 로딩 중 입니다.");
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_VTXPOS,
CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxPos.hlsl"),
VTXPOS::Elements, VTXPOS::iNumElements)))) {
return E_FAIL;
}
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_MESH, if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_MESH,
CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl"), CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl"),
VTXMESH::Elements, VTXMESH::iNumElements)))) { VTXMESH::Elements, VTXMESH::iNumElements)))) {
@@ -1124,6 +1131,10 @@ HRESULT CLoader::Loading_For_GamePlay()
if (FAILED(m_pGameInstance->Add_Prototype<CBuildingContainer>(g_iStaticLevel, CBuildingContainer::Create(m_pDevice, m_pContext)))) if (FAILED(m_pGameInstance->Add_Prototype<CBuildingContainer>(g_iStaticLevel, CBuildingContainer::Create(m_pDevice, m_pContext))))
return E_FAIL; return E_FAIL;
/* For.Prototype_GameObject_CStreetContainer */
if (FAILED(m_pGameInstance->Add_Prototype<CStreetContainer>(g_iStaticLevel, CStreetContainer::Create(m_pDevice, m_pContext))))
return E_FAIL;
/* For.Prototype_GameObject_CMapObject_Render */ /* For.Prototype_GameObject_CMapObject_Render */
if (FAILED(m_pGameInstance->Add_Prototype<CMapObject_Render>(g_iStaticLevel, CMapObject_Render::Create(m_pDevice, m_pContext)))) if (FAILED(m_pGameInstance->Add_Prototype<CMapObject_Render>(g_iStaticLevel, CMapObject_Render::Create(m_pDevice, m_pContext))))
return E_FAIL; return E_FAIL;
+175 -110
View File
@@ -3,6 +3,7 @@
#include "GameInstance.h" #include "GameInstance.h"
#include "InfoInstance.h" #include "InfoInstance.h"
#include "BuildingContainer.h" #include "BuildingContainer.h"
#include "StreetContainer.h"
#include "MAPPartObject.h" #include "MAPPartObject.h"
#include "MapObject_Render.h" #include "MapObject_Render.h"
#include "MapObject_Collision.h" #include "MapObject_Collision.h"
@@ -40,123 +41,28 @@ HRESULT CMapInfo::Load_MapObjects(const _char* pFileName)
for (auto* Container = root->FirstChildElement("Container"); Container; Container = Container->NextSiblingElement("Container")) for (auto* Container = root->FirstChildElement("Container"); Container; Container = Container->NextSiblingElement("Container"))
{ {
const _char* pName = {}; const _char* pName = {};
_uint iMapContainerType = {};
Container->QueryStringAttribute("Name", &pName); Container->QueryStringAttribute("Name", &pName);
#pragma region ADD_CONTAINER_OBJECT Container->QueryUnsignedAttribute("MapContainerType", &iMapContainerType);
CBuildingContainer* pContainerObject = { nullptr }; CMapContainer* pContainerObject = nullptr;
CMapContainer::MAP_CONTAINER_DESC ContainerDesc = {};
auto* ContainerPosition = Container->FirstChildElement("Position"); if (0 == iMapContainerType)
ContainerPosition->QueryFloatAttribute("x", &ContainerDesc.vPosition.x);
ContainerPosition->QueryFloatAttribute("y", &ContainerDesc.vPosition.y);
ContainerPosition->QueryFloatAttribute("z", &ContainerDesc.vPosition.z);
auto* ContainerScale = Container->FirstChildElement("Scale");
ContainerScale->QueryFloatAttribute("x", &ContainerDesc.vScale.x);
ContainerScale->QueryFloatAttribute("y", &ContainerDesc.vScale.y);
ContainerScale->QueryFloatAttribute("z", &ContainerDesc.vScale.z);
auto* ContainerRotation = Container->FirstChildElement("Rotation");
ContainerRotation->QueryFloatAttribute("x", &ContainerDesc.vRotation.x);
ContainerRotation->QueryFloatAttribute("y", &ContainerDesc.vRotation.y);
ContainerRotation->QueryFloatAttribute("z", &ContainerDesc.vRotation.z);
m_pGameInstance->Add_GameObject_ToLayer<CBuildingContainer>(
g_iStaticLevel, ENUM_CLASS(LEVEL::GAMEPLAY), LAYER_BACKGROUND, &ContainerDesc, nullptr, &pContainerObject);
#pragma endregion
#pragma region ADD_PARTOBJECT
for (auto* PartObject = Container->FirstChildElement("PartObject"); PartObject; PartObject = PartObject->NextSiblingElement("PartObject"))
{ {
_uint iLodLevel = {}; Load_BuildingContainer(Container, &pContainerObject);
_uint iKeyIndex = {};
PartObject->QueryUnsignedAttribute("Lod_Level", &iLodLevel);
PartObject->QueryUnsignedAttribute("Key_Index", &iKeyIndex);
#pragma region MAPOBJECT_RENDER
CMapPartObject::MAPOBJECT_DESC Desc = {};
string strTag = {};
for (auto* PrototypeTag = PartObject->FirstChildElement("PrototypeTag"); PrototypeTag; PrototypeTag = PrototypeTag->NextSiblingElement("PrototypeTag"))
{
strTag = PrototypeTag->GetText();
Desc.ModelPrototypeTags.push_back(CMyTools::ToWstring(strTag));
}
Desc.iMaxLodLevel = iLodLevel;
Desc.pParentTransform = pContainerObject->Get_Component<CTransform>();
const string strKey = CMyTools::ToString(Desc.ModelPrototypeTags.front()) + to_string(iKeyIndex);
/* Position */
tinyxml2::XMLElement* Position = PartObject->FirstChildElement("Position");
Position->QueryFloatAttribute("x", &Desc.vPosition.x);
Position->QueryFloatAttribute("y", &Desc.vPosition.y);
Position->QueryFloatAttribute("z", &Desc.vPosition.z);
/* Scale */
tinyxml2::XMLElement* Scale = PartObject->FirstChildElement("Scale");
Scale->QueryFloatAttribute("x", &Desc.vScale.x);
Scale->QueryFloatAttribute("y", &Desc.vScale.y);
Scale->QueryFloatAttribute("z", &Desc.vScale.z);
/* Rotation */
tinyxml2::XMLElement* Rotation = PartObject->FirstChildElement("Rotation");
Rotation->QueryFloatAttribute("x", &Desc.vRotation.x);
Rotation->QueryFloatAttribute("y", &Desc.vRotation.y);
Rotation->QueryFloatAttribute("z", &Desc.vRotation.z);
if (FAILED(pContainerObject->Add_Part<CMapObject_Render>(strKey, g_iStaticLevel, nullptr, &Desc)))
return E_FAIL;
#pragma endregion
} }
#pragma endregion else if (1 == iMapContainerType)
#pragma region ADD_COLLISION
for (auto* Collision = Container->FirstChildElement("Collision"); Collision; Collision = Collision->NextSiblingElement("Collision"))
{ {
_uint iLodLevel = {}; Load_StreetContainer(Container, &pContainerObject);
_uint iKeyIndex = {};
Collision->QueryUnsignedAttribute("Lod_Level", &iLodLevel);
Collision->QueryUnsignedAttribute("Key_Index", &iKeyIndex);
#pragma region MAPOBJECT_LOD
CMapPartObject::MAPOBJECT_DESC Desc = {};
string strTag = {};
for (auto* PrototypeTag = Collision->FirstChildElement("PrototypeTag"); PrototypeTag; PrototypeTag = PrototypeTag->NextSiblingElement("PrototypeTag"))
{
Desc.ModelPrototypeTags.push_back(CMyTools::ToWstring(PrototypeTag->GetText()));
}
Desc.iMaxLodLevel = iLodLevel;
Desc.pParentTransform = pContainerObject->Get_Component<CTransform>();
/* Position */
tinyxml2::XMLElement* Position = Collision->FirstChildElement("Position");
Position->QueryFloatAttribute("x", &Desc.vPosition.x);
Position->QueryFloatAttribute("y", &Desc.vPosition.y);
Position->QueryFloatAttribute("z", &Desc.vPosition.z);
/* Scale */
tinyxml2::XMLElement* Scale = Collision->FirstChildElement("Scale");
Scale->QueryFloatAttribute("x", &Desc.vScale.x);
Scale->QueryFloatAttribute("y", &Desc.vScale.y);
Scale->QueryFloatAttribute("z", &Desc.vScale.z);
/* Rotation */
tinyxml2::XMLElement* Rotation = Collision->FirstChildElement("Rotation");
Rotation->QueryFloatAttribute("x", &Desc.vRotation.x);
Rotation->QueryFloatAttribute("y", &Desc.vRotation.y);
Rotation->QueryFloatAttribute("z", &Desc.vRotation.z);
pContainerObject->Add_Collision<CMapObject_Collision>(g_iStaticLevel, &Desc);
#pragma endregion
} }
#pragma endregion else
return E_FAIL;
if (FAILED(Load_MapRenderObjects(Container, pContainerObject)))
return E_FAIL;
if (FAILED(Load_MapCollisionObjects(Container, pContainerObject)))
return E_FAIL;
} }
for (auto* Object = root->FirstChildElement("Object"); Object; Object = Object->NextSiblingElement("Object")) for (auto* Object = root->FirstChildElement("Object"); Object; Object = Object->NextSiblingElement("Object"))
@@ -201,6 +107,165 @@ HRESULT CMapInfo::Load_MapObjects(const _char* pFileName)
return S_OK; return S_OK;
} }
HRESULT CMapInfo::Load_BuildingContainer(tinyxml2::XMLElement* Container, CMapContainer** ppContainerObject)
{
CBuildingContainer::MAP_CONTAINER_DESC ContainerDesc = {};
auto* ContainerPosition = Container->FirstChildElement("Position");
ContainerPosition->QueryFloatAttribute("x", &ContainerDesc.vPosition.x);
ContainerPosition->QueryFloatAttribute("y", &ContainerDesc.vPosition.y);
ContainerPosition->QueryFloatAttribute("z", &ContainerDesc.vPosition.z);
auto* ContainerScale = Container->FirstChildElement("Scale");
ContainerScale->QueryFloatAttribute("x", &ContainerDesc.vScale.x);
ContainerScale->QueryFloatAttribute("y", &ContainerDesc.vScale.y);
ContainerScale->QueryFloatAttribute("z", &ContainerDesc.vScale.z);
auto* ContainerRotation = Container->FirstChildElement("Rotation");
ContainerRotation->QueryFloatAttribute("x", &ContainerDesc.vRotation.x);
ContainerRotation->QueryFloatAttribute("y", &ContainerDesc.vRotation.y);
ContainerRotation->QueryFloatAttribute("z", &ContainerDesc.vRotation.z);
auto* BoundingBox_Min = Container->FirstChildElement("BoundingBox_Min");
BoundingBox_Min->QueryFloatAttribute("x", &ContainerDesc.vContainerMin.x);
BoundingBox_Min->QueryFloatAttribute("y", &ContainerDesc.vContainerMin.y);
BoundingBox_Min->QueryFloatAttribute("z", &ContainerDesc.vContainerMin.z);
auto* BoundingBox_Max = Container->FirstChildElement("BoundingBox_Max");
BoundingBox_Max->QueryFloatAttribute("x", &ContainerDesc.vContainerMax.x);
BoundingBox_Max->QueryFloatAttribute("y", &ContainerDesc.vContainerMax.y);
BoundingBox_Max->QueryFloatAttribute("z", &ContainerDesc.vContainerMax.z);
m_pGameInstance->Add_GameObject_ToLayer<CBuildingContainer>(
g_iStaticLevel, ENUM_CLASS(LEVEL::GAMEPLAY), LAYER_BACKGROUND, &ContainerDesc, nullptr, reinterpret_cast<CBuildingContainer**>(ppContainerObject));
return S_OK;
}
HRESULT CMapInfo::Load_StreetContainer(tinyxml2::XMLElement* Container, CMapContainer** ppContainerObject)
{
CMapContainer::MAP_CONTAINER_DESC ContainerDesc = {};
auto* ContainerPosition = Container->FirstChildElement("Position");
ContainerPosition->QueryFloatAttribute("x", &ContainerDesc.vPosition.x);
ContainerPosition->QueryFloatAttribute("y", &ContainerDesc.vPosition.y);
ContainerPosition->QueryFloatAttribute("z", &ContainerDesc.vPosition.z);
auto* ContainerScale = Container->FirstChildElement("Scale");
ContainerScale->QueryFloatAttribute("x", &ContainerDesc.vScale.x);
ContainerScale->QueryFloatAttribute("y", &ContainerDesc.vScale.y);
ContainerScale->QueryFloatAttribute("z", &ContainerDesc.vScale.z);
auto* ContainerRotation = Container->FirstChildElement("Rotation");
ContainerRotation->QueryFloatAttribute("x", &ContainerDesc.vRotation.x);
ContainerRotation->QueryFloatAttribute("y", &ContainerDesc.vRotation.y);
ContainerRotation->QueryFloatAttribute("z", &ContainerDesc.vRotation.z);
m_pGameInstance->Add_GameObject_ToLayer<CStreetContainer>(
g_iStaticLevel, ENUM_CLASS(LEVEL::GAMEPLAY), LAYER_BACKGROUND, &ContainerDesc, nullptr, reinterpret_cast<CStreetContainer**>(ppContainerObject));
return S_OK;
}
HRESULT CMapInfo::Load_MapRenderObjects(tinyxml2::XMLElement* Container, CMapContainer* pContainerObject)
{
#pragma region ADD_PARTOBJECT
for (auto* PartObject = Container->FirstChildElement("PartObject"); PartObject; PartObject = PartObject->NextSiblingElement("PartObject"))
{
_uint iLodLevel = {};
_uint iKeyIndex = {};
PartObject->QueryUnsignedAttribute("Lod_Level", &iLodLevel);
PartObject->QueryUnsignedAttribute("Key_Index", &iKeyIndex);
#pragma region MAPOBJECT_RENDER
CMapPartObject::MAPOBJECT_DESC Desc = {};
string strTag = {};
for (auto* PrototypeTag = PartObject->FirstChildElement("PrototypeTag"); PrototypeTag; PrototypeTag = PrototypeTag->NextSiblingElement("PrototypeTag"))
{
strTag = PrototypeTag->GetText();
Desc.ModelPrototypeTags.push_back(CMyTools::ToWstring(strTag));
}
Desc.iMaxLodLevel = iLodLevel;
Desc.pParentTransform = pContainerObject->Get_Component<CTransform>();
const string strKey = CMyTools::ToString(Desc.ModelPrototypeTags.front()) + to_string(iKeyIndex);
/* Position */
tinyxml2::XMLElement* Position = PartObject->FirstChildElement("Position");
Position->QueryFloatAttribute("x", &Desc.vPosition.x);
Position->QueryFloatAttribute("y", &Desc.vPosition.y);
Position->QueryFloatAttribute("z", &Desc.vPosition.z);
/* Scale */
tinyxml2::XMLElement* Scale = PartObject->FirstChildElement("Scale");
Scale->QueryFloatAttribute("x", &Desc.vScale.x);
Scale->QueryFloatAttribute("y", &Desc.vScale.y);
Scale->QueryFloatAttribute("z", &Desc.vScale.z);
/* Rotation */
tinyxml2::XMLElement* Rotation = PartObject->FirstChildElement("Rotation");
Rotation->QueryFloatAttribute("x", &Desc.vRotation.x);
Rotation->QueryFloatAttribute("y", &Desc.vRotation.y);
Rotation->QueryFloatAttribute("z", &Desc.vRotation.z);
if (FAILED(pContainerObject->Add_Part<CMapObject_Render>(strKey, g_iStaticLevel, nullptr, &Desc)))
return E_FAIL;
#pragma endregion
}
return S_OK;
}
HRESULT CMapInfo::Load_MapCollisionObjects(tinyxml2::XMLElement* Container, CMapContainer* pContainerObject)
{
#pragma region ADD_COLLISION
for (auto* Collision = Container->FirstChildElement("Collision"); Collision; Collision = Collision->NextSiblingElement("Collision"))
{
_uint iLodLevel = {};
_uint iKeyIndex = {};
Collision->QueryUnsignedAttribute("Lod_Level", &iLodLevel);
Collision->QueryUnsignedAttribute("Key_Index", &iKeyIndex);
#pragma region MAPOBJECT_LOD
CMapPartObject::MAPOBJECT_DESC Desc = {};
string strTag = {};
for (auto* PrototypeTag = Collision->FirstChildElement("PrototypeTag"); PrototypeTag; PrototypeTag = PrototypeTag->NextSiblingElement("PrototypeTag"))
{
Desc.ModelPrototypeTags.push_back(CMyTools::ToWstring(PrototypeTag->GetText()));
}
Desc.iMaxLodLevel = iLodLevel;
Desc.pParentTransform = pContainerObject->Get_Component<CTransform>();
/* Position */
tinyxml2::XMLElement* Position = Collision->FirstChildElement("Position");
Position->QueryFloatAttribute("x", &Desc.vPosition.x);
Position->QueryFloatAttribute("y", &Desc.vPosition.y);
Position->QueryFloatAttribute("z", &Desc.vPosition.z);
/* Scale */
tinyxml2::XMLElement* Scale = Collision->FirstChildElement("Scale");
Scale->QueryFloatAttribute("x", &Desc.vScale.x);
Scale->QueryFloatAttribute("y", &Desc.vScale.y);
Scale->QueryFloatAttribute("z", &Desc.vScale.z);
/* Rotation */
tinyxml2::XMLElement* Rotation = Collision->FirstChildElement("Rotation");
Rotation->QueryFloatAttribute("x", &Desc.vRotation.x);
Rotation->QueryFloatAttribute("y", &Desc.vRotation.y);
Rotation->QueryFloatAttribute("z", &Desc.vRotation.z);
pContainerObject->Add_Collision<CMapObject_Collision>(g_iStaticLevel, &Desc);
#pragma endregion
}
#pragma endregion
return S_OK;
}
HRESULT CMapInfo::Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex) HRESULT CMapInfo::Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex)
{ {
m_pGameInstance = CGameInstance::GetInstance(); m_pGameInstance = CGameInstance::GetInstance();
@@ -24,19 +24,12 @@ void CStreetContainer::Update(_float fTimeDelta)
{ {
__super::Update(fTimeDelta); __super::Update(fTimeDelta);
m_fCamDepth = XMVectorGetX(XMVector3Length(XMLoadFloat4(m_pGameInstance->Get_CamPosition()) - XMLoadFloat3(&m_vExtentPosition)));
for (auto& pCollisiton : m_ColiisonPartObjects) for (auto& pCollisiton : m_ColiisonPartObjects)
pCollisiton->Update(fTimeDelta); pCollisiton->Update(fTimeDelta);
} }
void CStreetContainer::Late_Update(_float fTimeDelta) void CStreetContainer::Late_Update(_float fTimeDelta)
{ {
if (m_pOcclusionQueryCom->isDraw())
__super::Late_Update(fTimeDelta);
m_pGameInstance->Add_RenderGroup(RENDER::OCCLUSION, this);
__super::Late_Update(fTimeDelta); __super::Late_Update(fTimeDelta);
for (auto& pCollisiton : m_ColiisonPartObjects) for (auto& pCollisiton : m_ColiisonPartObjects)
@@ -48,45 +41,6 @@ HRESULT CStreetContainer::Render()
return S_OK; return S_OK;
} }
HRESULT CStreetContainer::Render_BoundingBox()
{
m_pOcclusionQueryCom->Begin_Query();
if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", &m_BoundingBoxWorldMatirx))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) {
return E_FAIL;
}
if (m_pGameInstance->Key_Pressing(DIK_Q))
{
if (FAILED(m_pShaderCom->Begin(1)))
return E_FAIL;
}
else
{
if (FAILED(m_pShaderCom->Begin(0)))
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_vRadius", &m_vExtentRadius, sizeof(_float3))))
return E_FAIL;
if (FAILED(m_pVIBufferCom->Bind_Resources()))
return E_FAIL;
if (FAILED(m_pVIBufferCom->Render()))
return E_FAIL;
m_pOcclusionQueryCom->End_Query();
return S_OK;
}
HRESULT CStreetContainer::Initialize_Prototype() HRESULT CStreetContainer::Initialize_Prototype()
{ {
return S_OK; return S_OK;
@@ -117,21 +71,6 @@ HRESULT CStreetContainer::Ready_Components(void* pArg)
return E_FAIL; return E_FAIL;
} }
///* Com_Shader */
//if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_VTXPOS,
// reinterpret_cast<CComponent**>(&m_pShaderCom))))
// return E_FAIL;
/* Com_Shader */
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Box"),
reinterpret_cast<CComponent**>(&m_pVIBufferCom))))
return E_FAIL;
/* Com_OcclusionQuery */
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_OcclusionQuery"),
reinterpret_cast<CComponent**>(&m_pOcclusionQueryCom))))
return E_FAIL;
return S_OK; return S_OK;
} }
@@ -170,10 +109,6 @@ void CStreetContainer::Free()
{ {
__super::Free(); __super::Free();
SAFE_RELEASE(m_pShaderCom);
SAFE_RELEASE(m_pVIBufferCom);
SAFE_RELEASE(m_pOcclusionQueryCom);
for (auto& pCollision : m_ColiisonPartObjects) for (auto& pCollision : m_ColiisonPartObjects)
SAFE_RELEASE(pCollision); SAFE_RELEASE(pCollision);
} }
@@ -3,10 +3,23 @@
#include "Client_Define.h" #include "Client_Define.h"
#include "MapContainer.h" #include "MapContainer.h"
NS_BEGIN(Engine)
class CShader;
class CVIBuffer_Box;
class COcclusionQuery;
NS_END
NS_BEGIN(Client) NS_BEGIN(Client)
class CBuildingContainer final : public CMapContainer class CBuildingContainer final : public CMapContainer // OCCLUSION CONTAINER
{ {
public:
typedef struct tagMapContainerDesc : public CMapContainer::MAP_CONTAINER_DESC
{
_float3 vContainerMin;
_float3 vContainerMax;
}MAP_CONTAINER_DESC;
private: private:
CBuildingContainer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); CBuildingContainer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CBuildingContainer(const CBuildingContainer& rhs); CBuildingContainer(const CBuildingContainer& rhs);
@@ -17,25 +30,14 @@ class CBuildingContainer final : public CMapContainer
virtual void Update(_float fTimeDelta) override; virtual void Update(_float fTimeDelta) override;
virtual void Late_Update(_float fTimeDelta) override; virtual void Late_Update(_float fTimeDelta) override;
virtual HRESULT Render() override; virtual HRESULT Render() override;
virtual HRESULT Render_BoundingBox() override;
public: private:
template<typename T> CShader* m_pShaderCom = { nullptr };
HRESULT Add_Part(const _string& strPartKey, _uint iPrototypeLevelIndex, T** ppOut, void* pArg = nullptr) { CVIBuffer_Box* m_pVIBufferCom = { nullptr };
return Add_PartObject<T>(strPartKey, iPrototypeLevelIndex, ppOut, pArg); COcclusionQuery* m_pOcclusionQueryCom = { nullptr };
}
template<typename T>
HRESULT Add_Collision(_uint iPrototypeLevelIndex, void* pArg = nullptr)
{
T* pPartObject = m_pGameInstance->Clone_Prototype<T>(iPrototypeLevelIndex, pArg, this);
if (nullptr == pPartObject) { _float3 m_vExtentWorldPosition = {};
return E_FAIL;
}
m_ColiisonPartObjects.push_back(pPartObject);
return S_OK;
}
private: private:
virtual HRESULT Initialize_Prototype() override; virtual HRESULT Initialize_Prototype() override;
@@ -20,6 +20,7 @@ namespace Client {
#define FX_INSTANCE_PROP_MODEL TEXT("FX_INSTANCE_PROP_MODEL") #define FX_INSTANCE_PROP_MODEL TEXT("FX_INSTANCE_PROP_MODEL")
#define FX_UIEDITOR TEXT("FX_UIEDITOR") #define FX_UIEDITOR TEXT("FX_UIEDITOR")
#define FX_UIINSTANCE TEXT("FX_UIINSTANCE") #define FX_UIINSTANCE TEXT("FX_UIINSTANCE")
#define FX_VTXPOS TEXT("FX_VTXPOS")
#pragma endregion #pragma endregion
#pragma region MACRO_PROTOTYPE #pragma region MACRO_PROTOTYPE
@@ -26,6 +26,25 @@ class CMapContainer abstract : public CContainerObject
virtual void Late_Update(_float fTimeDelta) override; virtual void Late_Update(_float fTimeDelta) override;
virtual HRESULT Render() override; virtual HRESULT Render() override;
public:
template<typename T>
HRESULT Add_Part(const _string& strPartKey, _uint iPrototypeLevelIndex, T** ppOut, void* pArg = nullptr) {
return Add_PartObject<T>(strPartKey, iPrototypeLevelIndex, ppOut, pArg);
}
template<typename T>
HRESULT Add_Collision(_uint iPrototypeLevelIndex, void* pArg = nullptr)
{
T* pPartObject = m_pGameInstance->Clone_Prototype<T>(iPrototypeLevelIndex, pArg, this);
if (nullptr == pPartObject) {
return E_FAIL;
}
m_ColiisonPartObjects.push_back(pPartObject);
return S_OK;
}
protected: protected:
virtual HRESULT Initialize_Prototype() override; virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override; virtual HRESULT Initialize(void* pArg) override;
+4 -1
View File
@@ -18,7 +18,10 @@ class CMapInfo final : public CBase
void Update(_float fTimeDelta); void Update(_float fTimeDelta);
void Change_Level(); void Change_Level();
HRESULT Load_MapObjects(const _char* pFilePath); HRESULT Load_MapObjects(const _char* pFilePath);
HRESULT Load_BuildingContainer(tinyxml2::XMLElement* Container, class CMapContainer** ppContainerObject);
HRESULT Load_StreetContainer(tinyxml2::XMLElement* Container, class CMapContainer** ppContainerObject);
HRESULT Load_MapRenderObjects(tinyxml2::XMLElement* Container, class CMapContainer* pContainerObject);
HRESULT Load_MapCollisionObjects(tinyxml2::XMLElement* Container, class CMapContainer* pContainerObject);
private: private:
CGameInstance* m_pGameInstance = { nullptr }; CGameInstance* m_pGameInstance = { nullptr };
@@ -2,22 +2,11 @@
#include "Client_Define.h" #include "Client_Define.h"
#include "MapContainer.h" #include "MapContainer.h"
NS_BEGIN(Engine)
class CShader;
class CVIBuffer_Box;
class COcclusionQuery;
NS_END
NS_BEGIN(Client) NS_BEGIN(Client)
class CStreetContainer final : public CMapContainer class CStreetContainer final : public CMapContainer // NON OCCLUSION CONTAINER
{ {
typedef struct tagStreetContainerDesc : public MAP_CONTAINER_DESC
{
_float3 vExtentRadius = {};
_float3 vExtentPosition = {};
}STREET_CONTAINER_DESC;
private: private:
CStreetContainer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); CStreetContainer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CStreetContainer(const CStreetContainer& rhs); CStreetContainer(const CStreetContainer& rhs);
@@ -28,36 +17,6 @@ class CStreetContainer final : public CMapContainer
virtual void Update(_float fTimeDelta) override; virtual void Update(_float fTimeDelta) override;
virtual void Late_Update(_float fTimeDelta) override; virtual void Late_Update(_float fTimeDelta) override;
virtual HRESULT Render() override; virtual HRESULT Render() override;
virtual HRESULT Render_BoundingBox() override;
public:
template<typename T>
HRESULT Add_Part(const _string& strPartKey, _uint iPrototypeLevelIndex, T** ppOut, void* pArg = nullptr) {
return Add_PartObject<T>(strPartKey, iPrototypeLevelIndex, ppOut, pArg);
}
template<typename T>
HRESULT Add_Collision(_uint iPrototypeLevelIndex, void* pArg = nullptr)
{
T* pPartObject = m_pGameInstance->Clone_Prototype<T>(iPrototypeLevelIndex, pArg, this);
if (nullptr == pPartObject) {
return E_FAIL;
}
m_ColiisonPartObjects.push_back(pPartObject);
return S_OK;
}
private:
CShader* m_pShaderCom = { nullptr };
CVIBuffer_Box* m_pVIBufferCom = { nullptr };
COcclusionQuery* m_pOcclusionQueryCom = { nullptr };
_float3 m_vExtentRadius = {};
_float3 m_vExtentPosition = {};
_float4x4 m_BoundingBoxWorldMatirx;
private: private:
virtual HRESULT Initialize_Prototype() override; virtual HRESULT Initialize_Prototype() override;
@@ -4,6 +4,9 @@
<Position x="39.271946" y="3.7999978" z="70.609833"/> <Position x="39.271946" y="3.7999978" z="70.609833"/>
<Scale x="1" y="1" z="1"/> <Scale x="1" y="1" z="1"/>
<Rotation x="-0" y="-60" z="-0"/> <Rotation x="-0" y="-60" z="-0"/>
<MapContainerType type="0"/>
<BoundingBox_Min x="-7.0020647" y="-0.45976496" z="-1.5148951"/>
<BoundingBox_Max x="6.3698497" y="12.858675" z="14.645905"/>
<PartObject Lod_Level="1" Key_Index="4"> <PartObject Lod_Level="1" Key_Index="4">
<PrototypeTag>Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_A</PrototypeTag> <PrototypeTag>Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_A</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_A_Lod1</PrototypeTag> <PrototypeTag>Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_A_Lod1</PrototypeTag>
@@ -366,6 +369,9 @@
<Position x="24" y="8" z="16"/> <Position x="24" y="8" z="16"/>
<Scale x="1" y="1" z="1"/> <Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/> <Rotation x="0" y="0" z="0"/>
<MapContainerType type="1"/>
<BoundingBox_Min x="-35.479698" y="-22.290039" z="7.2240992"/>
<BoundingBox_Max x="91.70047" y="12.14246" z="98.067856"/>
<PartObject Lod_Level="0" Key_Index="0"> <PartObject Lod_Level="0" Key_Index="0">
<PrototypeTag>Prototype_GameObject_SM_HM_LowerHiStreet_Zonkos</PrototypeTag> <PrototypeTag>Prototype_GameObject_SM_HM_LowerHiStreet_Zonkos</PrototypeTag>
<Position x="0" y="0" z="0"/> <Position x="0" y="0" z="0"/>
@@ -520,6 +526,9 @@
<Position x="23.494474" y="0" z="2.9722724"/> <Position x="23.494474" y="0" z="2.9722724"/>
<Scale x="1" y="1" z="1"/> <Scale x="1" y="1" z="1"/>
<Rotation x="0" y="7.0000072" z="0"/> <Rotation x="0" y="7.0000072" z="0"/>
<MapContainerType type="0"/>
<BoundingBox_Min x="-10.33712" y="-13.23702" z="-19.093868"/>
<BoundingBox_Max x="8.3332806" y="10.47531" z="17.818052"/>
<PartObject Lod_Level="2" Key_Index="0"> <PartObject Lod_Level="2" Key_Index="0">
<PrototypeTag>Prototype_GameObject_SM_HM_Gatehouse_Bridge</PrototypeTag> <PrototypeTag>Prototype_GameObject_SM_HM_Gatehouse_Bridge</PrototypeTag>
<PrototypeTag>Prototype_GameObject_SM_HM_Gatehouse_Bridge_Lod1</PrototypeTag> <PrototypeTag>Prototype_GameObject_SM_HM_Gatehouse_Bridge_Lod1</PrototypeTag>
@@ -716,6 +725,9 @@
<Position x="108.25024" y="16.399971" z="131.35001"/> <Position x="108.25024" y="16.399971" z="131.35001"/>
<Scale x="1" y="1" z="1"/> <Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/> <Rotation x="0" y="0" z="0"/>
<MapContainerType type="1"/>
<BoundingBox_Min x="-16.85453" y="-16.870581" z="-19.638439"/>
<BoundingBox_Max x="19.18985" y="14.93294" z="34.01255"/>
<PartObject Lod_Level="0" Key_Index="0"> <PartObject Lod_Level="0" Key_Index="0">
<PrototypeTag>Prototype_GameObject_SM_HM_PlazaMain_A</PrototypeTag> <PrototypeTag>Prototype_GameObject_SM_HM_PlazaMain_A</PrototypeTag>
<Position x="0" y="0" z="0"/> <Position x="0" y="0" z="0"/>
+66 -48
View File
@@ -10,7 +10,24 @@ CVIBuffer_Box::CVIBuffer_Box(const CVIBuffer_Box& rhs)
: CVIBuffer(rhs) : CVIBuffer(rhs)
{ {
} }
#ifdef EDITOR_PROJECT
HRESULT CVIBuffer_Box::Update(_float3* pVertexDatas)
{
D3D11_MAPPED_SUBRESOURCE SubResource{};
m_pContext->Map(m_pVB, 0, D3D11_MAP_WRITE_DISCARD, 0, &SubResource);
VTXPOS* pVertices = static_cast<VTXPOS*>(SubResource.pData);
for (_uint i = 0; i < m_iNumVertices; ++i)
{
memcpy(&pVertices[i].vPosition, &pVertexDatas[i], sizeof(_float3));
}
m_pContext->Unmap(m_pVB, 0);
return S_OK;
}
HRESULT CVIBuffer_Box::Initialize_Prototype() HRESULT CVIBuffer_Box::Initialize_Prototype()
{ {
m_iNumVertexBuffers = 1; m_iNumVertexBuffers = 1;
@@ -75,59 +92,25 @@ HRESULT CVIBuffer_Box::Initialize_Prototype()
HRESULT CVIBuffer_Box::Initialize(void* pArg) HRESULT CVIBuffer_Box::Initialize(void* pArg)
{ {
#pragma region VTX_BUFFER if (nullptr == pArg)
D3D11_BUFFER_DESC VBDesc{};
VBDesc.ByteWidth = m_iVertexStride * m_iNumVertices;
VBDesc.Usage = D3D11_USAGE_DYNAMIC;
VBDesc.BindFlags = D3D11_BIND_VERTEX_BUFFER;
VBDesc.CPUAccessFlags = D3D11_CPU_ACCESS_WRITE;
VBDesc.MiscFlags = 0;
VBDesc.StructureByteStride = m_iVertexStride;
VTXPOS* pVertices = new VTXPOS[m_iNumVertices];
memset(pVertices, 0, sizeof(VTXPOS) * m_iNumVertices);
pVertices[0].vPosition = _float3(-0.5f, 0.5f, -0.5f);
pVertices[1].vPosition = _float3(0.5f, 0.5f, -0.5f);
pVertices[2].vPosition = _float3(0.5f, -0.5f, -0.5f);
pVertices[3].vPosition = _float3(-0.5f, -0.5f, -0.5f);
pVertices[4].vPosition = _float3(-0.5f, 0.5f, 0.5f);
pVertices[5].vPosition = _float3(0.5f, 0.5f, 0.5f);
pVertices[6].vPosition = _float3(0.5f, -0.5f, 0.5f);
pVertices[7].vPosition = _float3(-0.5f, -0.5f, 0.5f);
D3D11_SUBRESOURCE_DATA VBRes{};
VBRes.pSysMem = pVertices;
if (FAILED(m_pDevice->CreateBuffer(&VBDesc, &VBRes, &m_pVB))) {
return E_FAIL;
}
Safe_Delete_Array(pVertices);
#pragma endregion
return S_OK;
}
HRESULT CVIBuffer_Box::Update(_float3* pVertexDatas)
{
D3D11_MAPPED_SUBRESOURCE SubResource{};
m_pContext->Map(m_pVB, 0, D3D11_MAP_WRITE_DISCARD, 0, &SubResource);
VTXPOS* pVertices = static_cast<VTXPOS*>(SubResource.pData);
for (_uint i = 0; i < m_iNumVertices; ++i)
{ {
memcpy(&pVertices[i].vPosition, &pVertexDatas[i], sizeof(_float3)); #ifdef EDITOR_PROJECT
if(FAILED(Ready_VIBuffer_Editor()))
return E_FAIL;
#else
return E_FAIL;
#endif
}
else
{
if(FAILED(Ready_VIBuffer(pArg)))
return E_FAIL;
} }
m_pContext->Unmap(m_pVB, 0);
return S_OK; return S_OK;
} }
#else HRESULT CVIBuffer_Box::Ready_VIBuffer(void* pArg)
HRESULT CVIBuffer_Box::Initialize(void* pArg)
{ {
_float3* pCorners = static_cast<_float3*>(pArg); _float3* pCorners = static_cast<_float3*>(pArg);
@@ -165,7 +148,42 @@ HRESULT CVIBuffer_Box::Initialize(void* pArg)
return S_OK; return S_OK;
} }
#ifdef EDITOR_PROJECT
HRESULT CVIBuffer_Box::Ready_VIBuffer_Editor()
{
#pragma region VTX_BUFFER
D3D11_BUFFER_DESC VBDesc{};
VBDesc.ByteWidth = m_iVertexStride * m_iNumVertices;
VBDesc.Usage = D3D11_USAGE_DYNAMIC;
VBDesc.BindFlags = D3D11_BIND_VERTEX_BUFFER;
VBDesc.CPUAccessFlags = D3D11_CPU_ACCESS_WRITE;
VBDesc.MiscFlags = 0;
VBDesc.StructureByteStride = m_iVertexStride;
VTXPOS* pVertices = new VTXPOS[m_iNumVertices];
memset(pVertices, 0, sizeof(VTXPOS) * m_iNumVertices);
pVertices[0].vPosition = _float3(-0.5f, 0.5f, -0.5f);
pVertices[1].vPosition = _float3(0.5f, 0.5f, -0.5f);
pVertices[2].vPosition = _float3(0.5f, -0.5f, -0.5f);
pVertices[3].vPosition = _float3(-0.5f, -0.5f, -0.5f);
pVertices[4].vPosition = _float3(-0.5f, 0.5f, 0.5f);
pVertices[5].vPosition = _float3(0.5f, 0.5f, 0.5f);
pVertices[6].vPosition = _float3(0.5f, -0.5f, 0.5f);
pVertices[7].vPosition = _float3(-0.5f, -0.5f, 0.5f);
D3D11_SUBRESOURCE_DATA VBRes{};
VBRes.pSysMem = pVertices;
if (FAILED(m_pDevice->CreateBuffer(&VBDesc, &VBRes, &m_pVB))) {
return E_FAIL;
}
Safe_Delete_Array(pVertices);
#pragma endregion
return S_OK;
}
#endif #endif
CVIBuffer_Box* CVIBuffer_Box::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) CVIBuffer_Box* CVIBuffer_Box::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+5 -6
View File
@@ -11,18 +11,17 @@ class ENGINE_DLL CVIBuffer_Box final :
CVIBuffer_Box(const CVIBuffer_Box& rhs); CVIBuffer_Box(const CVIBuffer_Box& rhs);
virtual ~CVIBuffer_Box() = default; virtual ~CVIBuffer_Box() = default;
private:
virtual HRESULT Initialize_Prototype() override;
#ifdef EDITOR_PROJECT
virtual HRESULT Initialize(void* pArg) override;
public: public:
virtual HRESULT Update(_float3* pVertices); virtual HRESULT Update(_float3* pVertices);
#else
private: private:
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override; virtual HRESULT Initialize(void* pArg) override;
#endif // EDITOR_PROJECT
HRESULT Ready_VIBuffer(void* pArg);
#ifdef EDITOR_PROJECT
HRESULT Ready_VIBuffer_Editor();
#endif
public: public:
static CVIBuffer_Box* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); static CVIBuffer_Box* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);