#pragma once #include "pch.h" #include #include class FrameRateDrawer { public: bool Initialize(ComPtr renderTarget, const RECT& destRect); void Draw(); private: ComPtr _d3dDC; D3D11_VIEWPORT _vp{}; ID3D11RenderTargetView* _rtv = nullptr; std::unique_ptr _spriteFont; std::unique_ptr _spriteBatch; };