#pragma once #include #include #include "INativeDrawingContext.h" #include "INativeDrawingSurface.h" class TextElement; class DrawingSurface; using DrawingSurfacePtr = std::unique_ptr; class DrawingContext; using DrawingContextPtr = std::unique_ptr; class Rasterizer; class DrawingManager { public: DrawingManager(); static std::unique_ptr Create(); void InitalizeSurface(unsigned width, unsigned height); void InitializeContext(); void AddText(TextElement* text); void RenderToFile(const std::string& path); private: std::unique_ptr mRasterizer; DrawingSurfacePtr mDrawingSurface {nullptr}; DrawingContextPtr mDrawingContext {nullptr}; }; using DrawingManagerPtr = std::unique_ptr;