251113
This commit is contained in:
@@ -11,7 +11,7 @@ CTexture::CTexture(const CTexture& rhs)
|
||||
:CComponent(rhs)
|
||||
, m_SRVs{ rhs.m_SRVs }
|
||||
{
|
||||
for (auto& iter : m_SRVs) {
|
||||
for (auto& iter : m_SRVs) {
|
||||
SAFE_ADDREF(iter);
|
||||
}
|
||||
}
|
||||
@@ -39,7 +39,26 @@ _uint CTexture::Get_Size()
|
||||
return (_uint)m_SRVs.size();
|
||||
}
|
||||
|
||||
HRESULT CTexture::Initialize_Prototype(TEXTURE_LOAD_TYPE eType, const _tchar* pTextureFilePath, _uint iNumTextures)
|
||||
_bool CTexture::Compare_GroupName(_wstring wstrGroupName)
|
||||
{
|
||||
return m_wstrPrototypeName == wstrGroupName;
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CTexture::HoverName()
|
||||
{
|
||||
if (ImGui::IsItemHovered()) {
|
||||
|
||||
ImGui::BeginTooltip(); // 툴팁 창 시작
|
||||
|
||||
ImGui::TextUnformatted(CMyTools::ToString(m_wstrPrototypeName).c_str()); // 텍스트 출력 (Text 대신 Unformatted 추천)
|
||||
|
||||
ImGui::EndTooltip(); // 툴팁 창 종료
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
HRESULT CTexture::Initialize_Prototype(TEXTURE_LOAD_TYPE eType, const _tchar* pTextureFilePath, _uint iNumTextures, _wstring wstrPrototypeName)
|
||||
{
|
||||
switch (eType)
|
||||
{
|
||||
@@ -65,6 +84,8 @@ HRESULT CTexture::Initialize_Prototype(TEXTURE_LOAD_TYPE eType, const _tchar* pT
|
||||
break;
|
||||
}
|
||||
|
||||
m_wstrPrototypeName = wstrPrototypeName;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -182,11 +203,11 @@ HRESULT CTexture::ParseTexturePathToSRVs(const _tchar* pTextureFolderPath)
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
CTexture* CTexture::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, TEXTURE_LOAD_TYPE eType, const _tchar* pTextureFilePath, _uint iNumTextures)
|
||||
CTexture* CTexture::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, TEXTURE_LOAD_TYPE eType, const _tchar* pTextureFilePath, _uint iNumTextures, _wstring wstrGroupName)
|
||||
{
|
||||
CTexture* pInstance = new CTexture(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype(eType, pTextureFilePath, iNumTextures)))
|
||||
if (FAILED(pInstance->Initialize_Prototype(eType, pTextureFilePath, iNumTextures, wstrGroupName)))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CTexture");
|
||||
SAFE_RELEASE(pInstance);
|
||||
|
||||
Reference in New Issue
Block a user