#pragma once #include #include #include #include #include #include class CruPlatformGraphicsDemo : public cru::Object2 { public: CruPlatformGraphicsDemo(std::string file_name, int width, int height); ~CruPlatformGraphicsDemo() override; cru::platform::graphics::IGraphicsFactory* GetFactory(); cru::platform::graphics::IImage* GetImage(); cru::platform::graphics::IPainter* GetPainter(); private: std::string file_name_; std::unique_ptr factory_; std::unique_ptr image_; std::unique_ptr painter_; };