1
0
mirror of https://github.com/borgesdan/xn65 synced 2024-12-29 21:54:47 +01:00
xn65/framework/platform/texture-dx.hpp

25 lines
406 B
C++
Raw Normal View History

2024-03-18 15:41:46 -03:00
#ifndef XNA_PLATFORM_TEXTURE_DX_HPP
#define XNA_PLATFORM_TEXTURE_DX_HPP
#include "../graphics/texture.hpp"
#include "dxgi.h"
#include "d3d11.h"
namespace xna {
2024-03-21 16:01:47 -03:00
class Texture2D : public ITexture2D {
public:
Texture2D();
2024-03-18 15:41:46 -03:00
2024-03-21 16:01:47 -03:00
virtual ~Texture2D() override {
if (_texture2D) {
_texture2D->Release();
_texture2D = nullptr;
}
}
public:
2024-03-18 15:41:46 -03:00
ID3D11Texture2D* _texture2D{nullptr};
};
}
#endif