mirror of
https://github.com/Blinue/Magpie.git
synced 2026-06-24 02:04:10 +00:00
21 lines
401 B
C++
21 lines
401 B
C++
#pragma once
|
|
#include "pch.h"
|
|
#include <SpriteFont.h>
|
|
#include <chrono>
|
|
|
|
|
|
class FrameRateDrawer {
|
|
public:
|
|
bool Initialize(ComPtr<ID3D11Texture2D> renderTarget, const RECT& destRect);
|
|
|
|
void Draw();
|
|
|
|
private:
|
|
ComPtr<ID3D11DeviceContext> _d3dDC;
|
|
D3D11_VIEWPORT _vp{};
|
|
|
|
ID3D11RenderTargetView* _rtv = nullptr;
|
|
std::unique_ptr<SpriteFont> _spriteFont;
|
|
std::unique_ptr<SpriteBatch> _spriteBatch;
|
|
};
|
|
|