module; #include #include #include export module Graphics; import Math; export class Graphics { template using ComPtr = ::Microsoft::WRL::ComPtr; public: static void Init(HWND hwnd); static void BeginDraw(); static void Clear(); static void Present(); static void Finalize(); static void DrawBitMap(const ComPtr& bitmap, D2D_RECT_F dst, D2D_RECT_F src); static ComPtr LoadImageFromFile(LPCWSTR uri); private: static ComPtr wic_factory; static ComPtr RT; static Vector2 RtSize; };