Merge pull request #214 from SpicyGangjeong/Develope

Follow
This commit is contained in:
hyunbin14
2025-11-25 15:45:15 +09:00
committed by GitHub
54 changed files with 421 additions and 42 deletions
@@ -30,10 +30,17 @@ float2 g_fCurrent_Size;
float2 g_fHpBG;
float4 g_fNine_Slice;
float4 g_fImageUV;
float4 g_fImageUV1;
float2 g_fPosition[4];
float4 g_fImagesUV[4];
Texture2D g_Texture;
Texture2D g_Texture1;
Texture2D g_Texture2;
Texture2D g_Texture3;
Texture2D g_Texture4;
Texture2D g_DiffuseTexture;
Texture2D g_MaskingTexture;
@@ -97,6 +104,8 @@ PS_OUT PS_AlphaBlend(PS_IN In)
float4 Color = g_Texture.Sample(DefaultSampler, In.vTexcoord);
Color.rgb *= 1.5f;
Color.a *= Alpha;
Out.vColor = Color;
@@ -548,6 +557,125 @@ PS_OUT PS_HpBar(PS_IN In)
return Out;
}
PS_OUT PS_Magic_Meter(PS_IN In)
{
PS_OUT Out;
float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
float3 Blue = float3(41.f, 165.f, 255.f) / 255.f;
float4 color = float4(1.f, 1.f, 1.f, 1.f);
float4 tex1 = g_Texture.Sample(ClampSampler, In.vTexcoord);
float4 tex2 = g_Texture1.Sample(ClampSampler, In.vTexcoord);
float2 reverseuv = 1.f - In.vTexcoord;
color = tex1;
tex2.rgb *= Blue * 1.5f;
if (reverseuv.x >= g_fHp)
{
tex2.rgb = float3(0.f, 0.f, 0.f);
}
if (all(color.rgb >= float3(65.f / 255.f, 65.f / 255.f, 65.f / 255.f)))
color = tex2;
color.a *= Alpha;
Out.vColor = color;
return Out;
}
PS_OUT PS_Magic_Icon(PS_IN In)
{
PS_OUT Out;
float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
float4 Color = float4(1.f, 1.f, 1.f, 1.f);
float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord);
float2 uv = In.vTexcoord;
float2 center = float2(0.5, 0.5);
float scale = 1.2;
uv = (uv - center) * scale + center;
float4 tex2 = g_Texture1.Sample(ClampSampler, uv);
Color = tex1;
Color = tex1 * (1 - tex2.a) + tex2;
Color.a *= Alpha;
Out.vColor = Color;
return Out;
}
PS_OUT PS_RemapUV(PS_IN In)
{
PS_OUT Out;
float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
float4 Color = float4(1.f, 1.f, 1.f, 1.f);
float2 startUV = g_fImageUV.xy;
float2 endUV = g_fImageUV.zw;
float2 atlasUV = startUV + In.vTexcoord * (endUV - startUV);
float4 tex1 = g_Texture.Sample(DefaultSampler, atlasUV);
Color = tex1;
Color.a *= Alpha;
Out.vColor = Color;
return Out;
}
PS_OUT PS_Revelio(PS_IN In)
{
PS_OUT Out;
float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
float4 Color = float4(1.f, 1.f, 1.f, 1.f);
float2 UV = In.vTexcoord;
float2 Position[4];
float2 startUV[4];
float2 endUV[4];
float2 Atlases[4];
for (int i = 0; i < 4; ++i)
{
Position[i] = g_fPosition[i];
startUV[i] = g_fImagesUV[i].xy;
endUV[i] = g_fImagesUV[i].zw;
Atlases[i] = startUV[i] + UV * (endUV[i] - startUV[i]);
}
float4 tex1 = g_Texture.Sample(DefaultSampler, UV);
float4 tex2 = g_Texture1.Sample(DefaultSampler, Atlases[0]);
float4 tex3 = g_Texture1.Sample(DefaultSampler, Atlases[1]);
float4 tex4 = g_Texture2.Sample(DefaultSampler, Atlases[2]);
float4 tex5 = g_Texture2.Sample(DefaultSampler, Atlases[3]);
//float2 atlasUV = startUV + In.vTexcoord * (endUV - startUV);
Color.a *= Alpha;
Out.vColor = Color;
return Out;
}
technique11 PosTexTechnique11
{
pass Default
@@ -688,4 +816,44 @@ technique11 PosTexTechnique11
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_HpBar();
}
pass Magic_Meter
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default, 0);
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN();
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_Magic_Meter();
}
pass Magic_Icon
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default, 0);
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN();
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_Magic_Icon();
}
pass RemapUV
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default, 0);
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN();
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_RemapUV();
}
pass Revelio
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default, 0);
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN();
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_Revelio();
}
}
@@ -179,11 +179,13 @@ void CBombard::Free()
SAFE_RELEASE(m_pLight_Projectile);
}
#ifdef _DEBUG
void CBombard::Describe_Entity()
{
}
#endif // _DEBUG
HRESULT CBombard::Bind_ShaderResources()
{
+3
View File
@@ -157,7 +157,10 @@ void CBroom::Free()
}
#ifdef _DEBUG
void CBroom::Describe_Entity()
{
}
#endif // _DEBUG
@@ -43,7 +43,10 @@ CGameObject* CCamPosition::Clone(void* pArg, CGameObject* pOwner)
{
return nullptr;
}
#ifdef _DEBUG
void CCamPosition::Describe_Entity()
{
}
#endif // _DEBUG
@@ -99,6 +99,10 @@ void CCamPosition_Arm::Free()
{
__super::Free();
}
#ifdef _DEBUG
void CCamPosition_Arm::Describe_Entity()
{
}
#endif // _DEBUG
@@ -94,7 +94,10 @@ void CCamPosition_Shoulder::Update(_float fTimeDelta)
if (FAILED(m_pGameInstance->IsBinded_Camera(CAMERA_SHOULDER))) {
return;
}
#ifdef _DEBUG
Describe_Entity();
#endif // _DEBUG
if (m_pGameInstance->Key_Up(DIK_GRAVE)) {
m_bMovable = !m_bMovable;
}
@@ -213,6 +216,8 @@ void CCamPosition_Shoulder::Free()
SAFE_RELEASE(m_pTarget_LookPart);
SAFE_RELEASE(m_pTarget_FollowPart);
}
#ifdef _DEBUG
void CCamPosition_Shoulder::Describe_Entity()
{
GUI::Begin("Cam_Shoulder");
@@ -225,3 +230,5 @@ void CCamPosition_Shoulder::Describe_Entity()
GUI::SliderFloat3("ShoulderPosRatio", (_float*)&m_vShoulderPosRatio, -2.f, 2.f, "%.1f");
GUI::End();
}
#endif // _DEBUG
@@ -99,7 +99,10 @@ void CCamPosition_Socket::Free()
{
__super::Free();
}
#ifdef _DEBUG
void CCamPosition_Socket::Describe_Entity()
{
}
#endif // _DEBUG
@@ -89,6 +89,10 @@ void CCamPosition_Target::Free()
{
__super::Free();
}
#ifdef _DEBUG
void CCamPosition_Target::Describe_Entity()
{
}
#endif // _DEBUG
@@ -155,7 +155,10 @@ void CCamera_Debug::Free()
{
__super::Free();
}
#ifdef _DEBUG
void CCamera_Debug::Describe_Entity()
{
}
#endif // _DEBUG
@@ -47,8 +47,10 @@ void CCamera_Gaze::Update(_float fTimeDelta)
}
Transition(fTimeDelta);
Update_LerpTimer(fTimeDelta);
#ifdef _DEBUG
Describe_Entity();
#endif // _DEBUG
}
void CCamera_Gaze::Update_LerpTimer(Engine::_float fTimeDelta)
@@ -166,6 +168,9 @@ void CCamera_Gaze::Free()
{
__super::Free();
}
#ifdef _DEBUG
void CCamera_Gaze::Describe_Entity()
{
GUI::Begin("Camera_Gaze_Describe");
@@ -194,3 +199,5 @@ void CCamera_Gaze::Describe_Entity()
GUI::End();
}
#endif // _DEBUG
@@ -53,7 +53,10 @@ void CDummy_PhysXPlayable::Update(_float fTimeDelta)
void CDummy_PhysXPlayable::Late_Update(_float fTimeDelta)
{
#ifdef _DEBUG
Describe_Entity();
#endif // _DEBUG
if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) {
m_pGameInstance->Add_RenderGroup(RENDER::BLEND, this);
}
@@ -218,8 +221,11 @@ void CDummy_PhysXPlayable::Free()
SAFE_RELEASE(m_pShaderCom);
SAFE_RELEASE(m_pModelCom);
}
#ifdef _DEBUG
void CDummy_PhysXPlayable::Describe_Entity()
{
m_pCharacter_Controller->Describe_Entity();
}
#endif // _DEBUG
@@ -161,7 +161,10 @@ void CDummy_PhysXWall::Free()
SAFE_RELEASE(m_pShaderCom);
SAFE_RELEASE(m_pModelCom);
}
#ifdef _DEBUG
void CDummy_PhysXWall::Describe_Entity()
{
}
#endif // _DEBUG
@@ -121,8 +121,11 @@ void CEffectParts::Free()
__super::Free();
}
#ifdef _DEBUG
void CEffectParts::Describe_Entity()
{
}
#endif // _DEBUG
@@ -110,7 +110,10 @@ void CLight_Main::Free()
Safe_Release(m_pLightCom);
}
#ifdef _DEBUG
void CLight_Main::Describe_Entity()
{
}
#endif // _DEBUG
@@ -150,12 +150,15 @@ void CNomalJap::Free()
// SAFE_RELEASE(m_pPhysHitBox);
}
#ifdef _DEBUG
void CNomalJap::Describe_Entity()
{
}
#endif // _DEBUG
HRESULT CNomalJap::Bind_ShaderResources()
{
return S_OK;
@@ -193,7 +193,10 @@ void CPhysXEffectHitBox::Free()
SAFE_RELEASE(m_pShaderCom);
SAFE_RELEASE(m_pModelCom);
}
#ifdef _DEBUG
void CPhysXEffectHitBox::Describe_Entity()
{
}
#endif // _DEBUG
+21 -1
View File
@@ -50,8 +50,10 @@ HRESULT CPlayer::Initialize(void* pArg)
if (FAILED(Ready_Parts())) {
return E_FAIL;
}
#ifdef _DEBUG
Load_KeyFrame();
#endif // _DEBUG
Add_FSM();
@@ -92,7 +94,10 @@ void CPlayer::Priority_Update(_float fTimeDelta)
void CPlayer::Update(_float fTimeDelta)
{
#ifdef _DEBUG
Update_CameraCoordinateSystem();
#endif // _DEBUG
m_pFSM->Update_State(fTimeDelta);
@@ -100,7 +105,9 @@ void CPlayer::Update(_float fTimeDelta)
__super::Update(fTimeDelta);
#ifdef _DEBUG
Describe_Entity();
#endif // _DEBUG
@@ -154,9 +161,12 @@ HRESULT CPlayer::Render()
return S_OK;
}
#ifdef _DEBUG
void CPlayer::Render_CameraCoordinateSystem()
{
m_Batch->Begin();
const _float fArrowLength = 2.0f;
@@ -194,6 +204,7 @@ void CPlayer::Render_CameraCoordinateSystem()
m_Batch->End();
}
#endif // _DEBUG
HRESULT CPlayer::Ready_Components()
{
@@ -298,6 +309,8 @@ HRESULT CPlayer::Bind_ShaderResources()
}
return S_OK;
}
#ifdef _DEBUG
void CPlayer::Update_CameraCoordinateSystem()
{
_vector xmvCameraLook = XMVector3Normalize(XMVectorSetY(m_pGameInstance->Get_CameraLook(), 0.f));
@@ -305,6 +318,8 @@ void CPlayer::Update_CameraCoordinateSystem()
XMStoreFloat3(&m_vCameraRightDir, XMVector3Normalize(XMVector3Cross(xmvUp, xmvCameraLook)));
XMStoreFloat3(&m_vCameraLookDir, xmvCameraLook);
}
#endif // _DEBUG
CPlayer* CPlayer::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CPlayer* pInstance = new CPlayer(pDevice, pContext);
@@ -347,6 +362,7 @@ void CPlayer::Free()
SAFE_RELEASE(m_pCamPosition_TopDown_LookPart);
SAFE_RELEASE(m_pCamPosition_ShoulderPart);
}
#ifdef _DEBUG
void CPlayer::Describe_Entity()
{
@@ -384,3 +400,7 @@ void CPlayer::Describe_Entity()
GUI::Checkbox("Render", &m_bVisible);
}
#endif // _DEBUG
@@ -146,7 +146,10 @@ void CSkyBox::Free()
SAFE_RELEASE(m_pModelCom);
SAFE_RELEASE(m_pShaderCom);
}
#ifdef _DEBUG
void CSkyBox::Describe_Entity()
{
}
#endif // _DEBUG
@@ -302,6 +302,7 @@ void CTrailObject::Free()
SAFE_RELEASE(m_pShaderCom);
SAFE_RELEASE(m_pTrailCom);
}
#ifdef _DEBUG
void CTrailObject::Describe_Entity()
{
@@ -309,15 +310,17 @@ void CTrailObject::Describe_Entity()
_float4 vValue = {};
XMStoreFloat4(&vValue, m_vOffset);
XMStoreFloat4(&vValue, m_vOffset);
if(GUI::InputFloat4("OFFSET", (_float*)&vValue))
if (GUI::InputFloat4("OFFSET", (_float*)&vValue))
{
m_vOffset = XMLoadFloat4(&vValue);
}
GUI::End();
}
#endif // _DEBUG
HRESULT CTrailObject::Bind_ShaderResources()
{
+3
View File
@@ -176,7 +176,10 @@ void CWand::Free()
SAFE_RELEASE(m_pShaderCom);
SAFE_RELEASE(m_pModelCom);
}
#ifdef _DEBUG
void CWand::Describe_Entity()
{
}
#endif // _DEBUG
+2
View File
@@ -36,7 +36,9 @@ class CBombard final : public CEffect_Container
static CBombard* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual void Free() override;
CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
#ifdef _DEBUG
void Describe_Entity() override;
#endif // _DEBUG
};
NS_END
+3
View File
@@ -37,7 +37,10 @@ class CBroom final : public CGameObject
static CBroom* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr) override;
virtual void Free() override;
#ifdef _DEBUG
virtual void Describe_Entity() override;
#endif // _DEBUG
};
NS_END
+2 -1
View File
@@ -29,8 +29,9 @@ class CCamPosition abstract : public CPartObject
CGameObject* Clone(void* pArg, CGameObject* pOwner)PURE;
virtual void Free() override;
#ifdef _DEBUG
void Describe_Entity() override;
#endif // _DEBUG
};
@@ -38,7 +38,10 @@ class CCamPosition_Arm final : public CCamPosition
static CCamPosition_Arm* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CCamPosition_Arm* Clone(void* pArg, class CGameObject* pOWner) override;
virtual void Free() override;
#ifdef _DEBUG
void Describe_Entity() override;
#endif // _DEBUG
};
NS_END
@@ -58,7 +58,11 @@ class CCamPosition_Shoulder final : public CCamPosition
static CCamPosition_Shoulder* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CCamPosition_Shoulder* Clone(void* pArg, class CGameObject* pOWner) override;
virtual void Free() override;
#ifdef _DEBUG
void Describe_Entity() override;
#endif // _DEBUG
};
NS_END
@@ -33,7 +33,10 @@ class CCamPosition_Socket final : public CCamPosition
static CCamPosition_Socket* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CCamPosition_Socket* Clone(void* pArg, class CGameObject* pOWner) override;
virtual void Free() override;
#ifdef _DEBUG
void Describe_Entity() override;
#endif // _DEBUG
};
NS_END
@@ -31,7 +31,11 @@ class CCamPosition_Target final : public CCamPosition
static CCamPosition_Target* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CCamPosition_Target* Clone(void* pArg, class CGameObject* pOWner) override;
virtual void Free() override;
#ifdef _DEBUG
void Describe_Entity() override;
#endif // _DEBUG
};
NS_END
@@ -40,7 +40,9 @@ class CCamera_Debug final : public CCamera
static CCamera_Debug* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
virtual void Free() override;
#ifdef _DEBUG
void Describe_Entity() override;
#endif // _DEBUG
};
@@ -36,8 +36,11 @@ class CCamera_Gaze final : public CCamera
static CCamera_Gaze* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
virtual void Free() override;
#ifdef _DEBUG
void Describe_Entity() override;
#endif // _DEBUG
};
NS_END
@@ -46,7 +46,9 @@ class CDummy_PhysXPlayable final : public CGameObject
static CDummy_PhysXPlayable* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
virtual void Free() override;
#ifdef _DEBUG
void Describe_Entity() override;
#endif // _DEBUG
};
NS_END
@@ -42,7 +42,10 @@ class CDummy_PhysXWall final : public CGameObject
static CDummy_PhysXWall* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
virtual void Free() override;
#ifdef _DEBUG
void Describe_Entity() override;
#endif // _DEBUG
};
NS_END
@@ -31,7 +31,10 @@ class CEffectParts final : public CEffectObject
static CEffectParts* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
virtual void Free() override;
#ifdef _DEBUG
void Describe_Entity() override;
#endif // _DEBUG
};
NS_END
@@ -44,7 +44,11 @@ class CGamePlay_Canvas final : public CCanvasObject
static CGamePlay_Canvas* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
virtual void Free() override;
#ifdef _DEBUG
void Describe_Entity() override;
#endif // _DEBUG
};
NS_END
@@ -31,7 +31,11 @@ class CLight_Main final : public CGameObject
static CLight_Main* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr) override;
virtual void Free() override;
#ifdef _DEBUG
virtual void Describe_Entity() override;
#endif // _DEBUG
};
NS_END
+4
View File
@@ -35,7 +35,11 @@ class CNomalJap final : public CEffect_Container
static CNomalJap* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual void Free() override;
CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
#ifdef _DEBUG
void Describe_Entity() override;
#endif // _DEBUG
};
NS_END
@@ -55,7 +55,11 @@ class CPhysXEffectHitBox final : public CGameObject
static CPhysXEffectHitBox* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
virtual void Free() override;
#ifdef _DEBUG
void Describe_Entity() override;
#endif // _DEBUG
};
NS_END
+6 -1
View File
@@ -17,7 +17,9 @@ class CPlayer final : public CUnit
virtual void Update(_float fTimeDelta) override;
virtual void Late_Update(_float fTimeDelta) override;
virtual HRESULT Render() override;
#ifdef _DEBUG
void Render_CameraCoordinateSystem();
#endif // _DEBUG
_bool Set_Sprint(_bool bSprint) { m_bSprintToggle = bSprint; }
private:
@@ -44,9 +46,9 @@ class CPlayer final : public CUnit
HRESULT Ready_Components();
HRESULT Ready_Parts();
HRESULT Bind_ShaderResources();
void Update_CameraCoordinateSystem();
#ifdef _DEBUG
void Update_CameraCoordinateSystem();
unique_ptr<BasicEffect> m_BasicEffect;
unique_ptr<PrimitiveBatch<VertexPositionColor>> m_Batch;
#endif // _DEBUG
@@ -56,8 +58,11 @@ class CPlayer final : public CUnit
static CPlayer* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr) override;
virtual void Free() override;
#ifdef _DEBUG
virtual void Describe_Entity() override;
#endif // _DEBUG
#pragma region STATE
public:
+3
View File
@@ -33,7 +33,10 @@ class CSkyBox final : public CGameObject
static CSkyBox* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
virtual void Free() override;
#ifdef _DEBUG
void Describe_Entity() override;
#endif // _DEBUG
};
NS_END
@@ -91,7 +91,10 @@ class CTrailObject final : public CPartObject
static CTrailObject* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
virtual void Free() override;
#ifdef _DEBUG
void Describe_Entity() override;
#endif // _DEBUG
private:
CTexture* m_pDiffuse_TextureCom = { nullptr };
+4 -1
View File
@@ -39,7 +39,10 @@ class CWand final : public CPartObject
static CWand* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr)override;
virtual void Free() override;
virtual void Describe_Entity() override;
#ifdef _DEBUG
void Describe_Entity() override;
#endif // _DEBUG
};
NS_END
@@ -160,6 +160,9 @@ void CGamePlay_Canvas::Free()
SAFE_RELEASE(m_pVIBufferCom);
}
#ifdef _DEBUG
void CGamePlay_Canvas::Describe_Entity()
{
}
#endif // _DEBUG
@@ -208,6 +208,7 @@ void CAnimation::InterpAnim(CAnimation* pPreAnim, vector<CBone*>& Bones, _float
}
void CAnimation::CreateGPUData(ID3D11Device* pDevice)
{
vector<CHANNEL_DESC> channels;
+12 -12
View File
@@ -79,18 +79,6 @@ CBone* CBone::Create(const aiNode* pAINode, _int iParentIndex)
return pInstance;
}
CBone* CBone::Create(const SaveNode& _SaveNode, _int iParentIndex)
{
CBone* pInstance = new CBone();
if (FAILED(pInstance->Initialize(_SaveNode, iParentIndex)))
{
MSG_BOX("Failed to Created : CBone");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
HRESULT CBone::Initialize(const aiNode* pAINode, _int iParentIndex)
{
@@ -107,6 +95,18 @@ HRESULT CBone::Initialize(const aiNode* pAINode, _int iParentIndex)
}
#endif
CBone* CBone::Create(const SaveNode& _SaveNode, _int iParentIndex)
{
CBone* pInstance = new CBone();
if (FAILED(pInstance->Initialize(_SaveNode, iParentIndex)))
{
MSG_BOX("Failed to Created : CBone");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
HRESULT CBone::Initialize(HANDLE hFile, DWORD& dwByte)
{
+13 -14
View File
@@ -60,6 +60,19 @@ HRESULT CChannel::Initialize(const vector<CBone*>& Bones, const aiNodeAnim* pAIC
return S_OK;
}
CChannel* CChannel::Create(const vector<CBone*>& Bones, const aiNodeAnim* pAIChannel)
{
CChannel* pInstance = new CChannel();
if (FAILED(pInstance->Initialize(Bones, pAIChannel))) {
MSG_BOX("Failed to Created : CChannel");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
#endif
void CChannel::Fill_GPU_Keyframes(vector<KEYFRAME_DESC>& outKeyframes)
{
for (_uint i = 0; i < m_iNumKeyFrames; i++)
@@ -86,20 +99,6 @@ CHANNEL_DESC CChannel::Fill_GPU_ChannelDesc()
return desc;
}
CChannel* CChannel::Create(const vector<CBone*>& Bones, const aiNodeAnim* pAIChannel)
{
CChannel* pInstance = new CChannel();
if (FAILED(pInstance->Initialize(Bones, pAIChannel))) {
MSG_BOX("Failed to Created : CChannel");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
#endif
HRESULT CChannel::Initialize(const vector<CBone*>& Bones, _uint iIndex)
{
m_iBoneIndex = iIndex;
@@ -58,7 +58,7 @@ HRESULT CCharacter_Controller::Render()
}
return S_OK;
}
#endif // _DEBUG
PSX::PxRigidDynamic* CCharacter_Controller::Get_Actor()
{
return m_pController->getActor();
@@ -69,8 +69,6 @@ PSX::PxController* CCharacter_Controller::Get_Controller()
return m_pController;
}
#endif // _DEBUG
void CCharacter_Controller::Resize_Volume(_float fHeight)
{
m_pController->resize(fHeight);
@@ -618,16 +618,20 @@ void CGameInstance::Add_ModelToMap(const _char* filePath, CModel* pModel)
{
m_ModelMap[filePath] = pModel;
}
#endif
void CGameInstance::Add_SaveModel(const _char* filePath, SaveModel sModel)
{
m_sModelMap[filePath] = sModel;
}
SaveModel* CGameInstance::Load_SaveModel(const _char* filePath)
{
auto iter = m_sModelMap.find(filePath);
return &iter->second;
}
#endif
#pragma region PhysX_Manager
PSX::PxMaterial* CGameInstance::Create_Material(_float3* vMatInfo)
+37
View File
@@ -906,6 +906,7 @@ HRESULT CModel::Create_ParentVB()
return S_OK;
}
#ifdef _DEBUG
HRESULT CModel::Initialize_Prototype(MODEL eType, const _char* pModelFilePath, _fmatrix PreTransformMatrix)
{
m_eType = eType;
@@ -928,6 +929,7 @@ HRESULT CModel::Initialize_Prototype(MODEL eType, const _char* pModelFilePath, _
if (FAILED(Assimp_Model_Load(pModelFilePath, eType, PreTransformMatrix, 0))) {
return E_FAIL;
}
SaveAssimpModel(Temp);
return S_OK;
@@ -954,6 +956,41 @@ HRESULT CModel::Initialize_Prototype(MODEL eType, const _char* pModelFilePath, _
return S_OK;
}
#endif // _DEBUG
#ifndef _DEBUG
HRESULT CModel::Initialize_Prototype(MODEL eType, const _char* pModelFilePath, _fmatrix PreTransformMatrix)
{
m_eType = eType;
LoadData(pModelFilePath);
m_pSaveModel = m_pGameInstance->Load_SaveModel(pModelFilePath);
LoadAdditionalAnimations(pModelFilePath);
XMStoreFloat4x4(&m_PreTransformMatrix, PreTransformMatrix);
Ready_Bones(m_pSaveModel->Nodes, 0, -1);
if (FAILED(Ready_Meshes())) {
return E_FAIL;
}
if (FAILED(Ready_Materials(pModelFilePath))) {
return E_FAIL;
}
if (FAILED(Ready_Animations(m_Bones))) {
return E_FAIL;
}
return S_OK;
}
#endif
void CModel::LoadAdditionalAnimations(const char* ModelFilePath)
{
filesystem::path fullPath(ModelFilePath);
+5 -1
View File
@@ -48,6 +48,7 @@ HRESULT CUnit::Render()
return S_OK;
}
#ifdef _DEBUG
void CUnit::Load_KeyFrame()
{
FILE* fp = nullptr;
@@ -90,7 +91,7 @@ void CUnit::Load_KeyFrame()
}
}
}
#endif
_float CUnit::Get_KeyFrame(_string FrameName)
{
auto iter = m_KeyFrames.find(FrameName);
@@ -137,7 +138,10 @@ void CUnit::Free()
SAFE_RELEASE(m_pModelCom);
SAFE_RELEASE(m_pFSM);
}
#ifdef _DEBUG
void CUnit::Describe_Entity()
{
}
#endif // _DEBUG
@@ -294,7 +294,6 @@ void CVIBuffer_Terrain::Set_CullingRadius(_float fRaduis)
{
m_pQuadTree->Set_CullingRadius(fRaduis);
}
#endif // _DEBUG
HRESULT CVIBuffer_Terrain::Save_HeightMap(const _char* pFilePath)
@@ -364,6 +363,7 @@ HRESULT CVIBuffer_Terrain::Load_HeightMap(const _char* pFilePath)
return S_OK;
}
#endif // _DEBUG
CVIBuffer_Terrain* CVIBuffer_Terrain::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, const _char* pFilePath, _uint iSizeX, _uint iSizeZ)
{
@@ -22,7 +22,12 @@ class ENGINE_DLL CAnimation : public CBase
void Set_AnimProgressPostion(const _char* pChannelName, _uint iPosition);
vector<_int>* Capture_Bones();
void InterpAnim(CAnimation* pPreAnim, vector<CBone*>& Bones, float fRatio);
void CreateGPUData(ID3D11Device* pDevice);
vector<LERPDESC> Get_StartFrameInformations() { return m_StartKeyFrames; }
const _string& Get_Name() const { return m_strName; }
+3 -1
View File
@@ -16,9 +16,11 @@ class ENGINE_DLL CChannel : public CBase
public:
static CChannel* Create(const vector<class CBone*>& Bones, const aiNodeAnim* pAIChannel);
#endif // EDITOR_PROJECT
public:
void Fill_GPU_Keyframes(vector<KEYFRAME_DESC>& outKeyframes);
CHANNEL_DESC Fill_GPU_ChannelDesc();
#endif // EDITOR_PROJECT
public:
void Update_TransformationMatirx(const vector<class CBone*>& Bones, const LOCALPOS_DESC* pLocalPosArray, _float fCurrentTrackPosition, _uint* pCurrentKeyFrameIndex,class CTransform* pTransform=nullptr,_float m_fAmount = 1.f);
+2 -2
View File
@@ -262,9 +262,9 @@ class ENGINE_DLL CGameInstance final : public CBase
vector<const _char*> m_FilePaths = {};
map<const _char*, CModel*> m_ModelMap;
map<const _char*, SaveModel> m_sModelMap;
#endif // _DEBUG
#endif // _DEBUG
map<const _char*, SaveModel> m_sModelMap;
public:
void Release_Engine();
virtual void Free() override;
@@ -110,7 +110,10 @@ class ENGINE_DLL CGameObject abstract
public:
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner = nullptr)PURE;
virtual void Free() override;
#ifdef _DEBUG
virtual void Describe_Entity()PURE;
#endif // _DEBUG
};
NS_END
+6
View File
@@ -25,7 +25,10 @@ class ENGINE_DLL CUnit abstract : public CContainerObject
virtual void Late_Update(_float fTimeDelta) override;
virtual HRESULT Render() override;
_wstring& Get_PrototypeTag() { return m_strModelPrototypeTag; }
#ifdef _DEBUG
void Load_KeyFrame();
#endif // _DEBUG
public:
#pragma region STATE
@@ -74,7 +77,10 @@ class ENGINE_DLL CUnit abstract : public CContainerObject
public:
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr)PURE;
virtual void Free() override;
#ifdef _DEBUG
virtual void Describe_Entity() override;
#endif // _DEBUG
};
NS_END