#ifndef XNA_GRAPHICS_GRESOURCE_HPP #define XNA_GRAPHICS_GRESOURCE_HPP #include namespace xna { class GraphicsDevice; //Queries and prepares resources. class GraphicsResource { public: GraphicsResource(std::shared_ptr const& device); virtual ~GraphicsResource(){} virtual bool Bind(std::shared_ptr const& device); //Gets the GraphicsDevice associated with this GraphicsResource. std::shared_ptr Device() const; protected: std::shared_ptr BaseGraphicsDevice = nullptr; }; } #endif