mirror of
https://github.com/borgesdan/xn65
synced 2024-12-29 21:54:47 +01:00
26 lines
578 B
C++
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 |