Files
Hogwarts_Legacy/Jusin154_Team3D/Engine/Public/Component.h
T
GiJungSUk 88f5d0f8f2 251108김진우
[add]
컴퓨트 쉐이더 추가
[add]
모델 인스턴싱 추가
[add]
프로토타입에 타입별로
IMGUI 통해 객체 받아올수 있도록 수정중
2025-11-08 21:56:54 +09:00

38 lines
831 B
C++

#pragma once
#include "Base.h"
NS_BEGIN(Engine)
class ENGINE_DLL CComponent abstract : public CBase
{
protected:
CComponent(ID3D11Device * pDevice, ID3D11DeviceContext * pContext);
CComponent(const CComponent& rhs);
virtual ~CComponent() = default;
public:
virtual HRESULT Render() { return S_OK; }
protected:
ID3D11Device* m_pDevice = { nullptr };
ID3D11DeviceContext* m_pContext = { nullptr };
class CGameInstance* m_pGameInstance = { nullptr };
class CGameObject* m_pOwner = { nullptr };
_bool m_bCloned = { false };
protected:
virtual HRESULT Initialize_Prototype();
virtual HRESULT Initialize(void* pArg);
public:
virtual CComponent* Clone(void* pArg, class CGameObject* pOwner = nullptr)PURE;
virtual void Free();
#ifdef _DEBUG
virtual void Describe_Entity()PURE; // IMGUI Àü¿ë
#endif
};
NS_END