枠-1
CFastDraw* GetFastDraw() { return &m_vFastDraw;}
list-1
CPlane plane;
list-2
plane->Load("test.jpg");
枠-2
static void SetFactory(const smart_ptr<IPlaneFactory>& pFactory) { pFactory_ = pFactory; } static smart_ptr<IPlaneFactory> GetFactory() { return pFactory_; } static ThreadLocal<smart_ptr<IPlaneFactory> > pFactory_;
枠-3
static void SetFactory(const smart_ptr<IPlaneFactory>& pFactory) { pFactory_ = pFactory; }
枠-4
CPlane(const smart_ptr<IPlaneFactory>& pFactory); /// surfaceのfactoryを渡せば、それを用いて生成して保持する
list-3
public: CFastDraw* GetDraw() { return GetDrawFactory()->GetDraw(); } CFastPlaneFactory* GetDrawFactory() { return& m_vFastPlaneFactory; } protected: CFastPlaneFactory m_vFastPlaneFactory;