2024-04-25 09:43:21 -03:00
|
|
|
#ifndef XNA_GRAPHICS_GRESOURCE_HPP
|
|
|
|
#define XNA_GRAPHICS_GRESOURCE_HPP
|
|
|
|
|
|
|
|
#include "../default.hpp"
|
|
|
|
|
|
|
|
namespace xna {
|
2024-06-06 14:47:39 -03:00
|
|
|
//Queries and prepares resources.
|
2024-04-25 09:43:21 -03:00
|
|
|
class GraphicsResource {
|
|
|
|
public:
|
2024-06-06 14:47:39 -03:00
|
|
|
GraphicsResource(sptr<GraphicsDevice> const& device);
|
2024-04-25 09:43:21 -03:00
|
|
|
|
|
|
|
virtual ~GraphicsResource(){}
|
|
|
|
|
2024-06-06 14:47:39 -03:00
|
|
|
virtual bool Bind(sptr<GraphicsDevice> const& device);
|
2024-04-25 09:43:21 -03:00
|
|
|
|
2024-06-06 14:47:39 -03:00
|
|
|
//Gets the GraphicsDevice associated with this GraphicsResource.
|
|
|
|
sptr<xna::GraphicsDevice> Device() const;
|
2024-04-25 09:43:21 -03:00
|
|
|
|
|
|
|
protected:
|
2024-05-06 15:57:09 -03:00
|
|
|
sptr<GraphicsDevice> m_device = nullptr;
|
2024-04-25 09:43:21 -03:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|