1
0
mirror of https://github.com/borgesdan/xn65 synced 2024-12-29 21:54:47 +01:00
xn65/includes/xna/graphics/gresource.hpp
2024-11-15 11:47:33 -03:00

26 lines
578 B
C++

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