Files
Hogwarts_Legacy/Jusin154_Team3D/Engine/Public/Renderer.h
T

96 lines
2.2 KiB
C++

#pragma once
#include "Base.h"
NS_BEGIN(Engine)
class CRenderer final : public CBase
{
private:
CRenderer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual ~CRenderer() = default;
public:
void Render();
HRESULT Add_RenderGroup(RENDER eRenderGroup, class CGameObject* pRenderObject);
#ifdef _DEBUG
private:
HRESULT Add_DebugComponent(class CComponent* pDebugCom);
#endif
private:
ID3D11Device* m_pDevice = { nullptr };
ID3D11DeviceContext* m_pContext = { nullptr };
class CGameInstance* m_pGameInstance = { nullptr };
list<class CGameObject*> m_RenderObjects[ENUM_CLASS(RENDER::END)];
#ifdef _DEBUG
private:
list<class CComponent*> m_DebugComponents;
#endif
private:
class CShader* m_pShader = { nullptr };
class CShader* m_pLastColorShader = { nullptr };
class CShader* m_pWeightBlendShader = { nullptr };
class CVIBuffer_Rect* m_pVIBuffer = { nullptr };
private:
_float4x4 m_WorldMatrix = {};
_float4x4 m_ViewMatrix = {};
_float4x4 m_ProjMatrix = {};
ID3D11DepthStencilView* m_pShadowDSV = { nullptr };
SHADOW_LIGHT_DESC m_PreShadowDesc = {};
_float4x4 m_PreShadowMatrices[ENUM_CLASS(D3DTS::END)] = {};
_bool m_bPostProcessing_BLOOM = { false };
_bool m_bDOF_ENV = { false };
_int m_iBloomEmbossingPass = { 0 };
_float m_fThreshold = { 1.26f };
_float m_fDOF_ENV_CutThreshold = { 0.1350f };
_float m_fDOF_ENV_FocusDistance = { 31.1f };
_float m_fDOF_ENV_StartDistance = { 53.1f };
_float m_fDOF_ENV_MaxEnd = { 360.f };
_float m_fDOF_ENV_AmountRadius = { 1.f };
private:
void Render_Occlusion();
void Render_Priority();
void Render_Shadow();
void Render_NonBlend();
void Render_LightAcc();
void Render_Blur();
void Render_Combined();
void Render_EnvironmentPostProcess();
void Render_Fog();
void Render_Effect();
void Render_WeightBlend();
void Render_NonLight();
void Render_Blend();
void Render_Bloom();
void Render_LastColor();
void Render_UI();
#ifdef _DEBUG
private:
void Render_Debug();
#endif
private:
HRESULT Ready_ShadowDepthStencilView(_uint iSizeX, _uint iSizeY);
private:
HRESULT Initialize();
public:
static CRenderer* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual void Free();
#ifdef _DEBUG
virtual void Describe_Entitiy();
#endif // _DEBUG
};
NS_END