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