4 #include "GraphicApi.hpp"
8 struct ID3D10RenderTargetView;
9 struct ID3D10DepthStencilView;
10 struct ID3D10RasterizerState;
51 using ComPtr_t = ::Microsoft::WRL::ComPtr<T>;
52 using Renders_t = ::std::vector<Render_t>;
56 String_t GetUsingApi(
void)
const override;
57 void PresentFrame(
void)
override;
58 void ResizeWindow(
const Rect &)
override;
62 Render_t CreateCamera(
const ComponentPtr_t &)
override;
63 Render_t CreateBkSurface(
const ComponentPtr_t &)
override;
64 Render_t CreateState(
const ComponentPtr_t &)
override;
65 Render_t CreateTexture(
const ComponentPtr_t &)
override;
66 Render_t CreateShader(
const ComponentPtr_t &)
override;
67 Render_t CreateBuffer(
const ComponentPtr_t &)
override;
68 Render_t CreateTransform(
const ComponentPtr_t &)
override;
69 Render_t CreatePresentBuffer(
const ComponentPtr_t &)
override;
72 void SetViewport(
const UINT,
const UINT);
73 Render_t CreateBlendState(
bool);
74 Render_t GetDepthState(
bool,
bool,
bool);
75 Render_t CreateBasePreRenderGeometry(
const ComponentPtr_t &);
76 Render_t CreateStaticPreRenderGeometry(
const ComponentPtr_t &);
77 Render_t CreateBillboardPreRenderGeometry(
const ComponentPtr_t &);
80 ComPtr_t<ID3D10Device> m_pDevice;
81 ComPtr_t<IDXGISwapChain> m_pSwapChain;
82 ComPtr_t<ID3D10RasterizerState> m_pDefaultRasterizerState;
84 ComPtr_t<ID3D10RenderTargetView> m_pScreenRenderTargetView;
85 ComPtr_t<ID3D10DepthStencilView> m_pScreenDepthStencilView;
87 ::std::vector<ID3D10RenderTargetView *> m_CurrentRenderTargets;
88 ComPtr_t<ID3D10DepthStencilView> m_pCurrentDepthStencilView;