mirror of
https://github.com/borgesdan/xn65
synced 2024-12-29 21:54:47 +01:00
24 lines
513 B
C++
24 lines
513 B
C++
#ifndef XNA_GRAPHICS_GRESOURCE_HPP
|
|
#define XNA_GRAPHICS_GRESOURCE_HPP
|
|
|
|
#include "../default.hpp"
|
|
|
|
namespace xna {
|
|
//Queries and prepares resources.
|
|
class GraphicsResource {
|
|
public:
|
|
GraphicsResource(sptr<GraphicsDevice> const& device);
|
|
|
|
virtual ~GraphicsResource(){}
|
|
|
|
virtual bool Bind(sptr<GraphicsDevice> const& device);
|
|
|
|
//Gets the GraphicsDevice associated with this GraphicsResource.
|
|
sptr<xna::GraphicsDevice> Device() const;
|
|
|
|
protected:
|
|
sptr<GraphicsDevice> m_device = nullptr;
|
|
};
|
|
}
|
|
|
|
#endif |