TombEngine/TR5Main/Renderer/Texture2D/Texture2D.h

21 lines
494 B
C
Raw Normal View History

2020-06-21 11:51:46 +02:00
#pragma once
#include <d3d11.h>
#include <string>
#include <wrl/client.h>
2021-08-30 18:03:21 +03:00
namespace TEN::Renderer {
2020-06-21 11:51:46 +02:00
using Microsoft::WRL::ComPtr;
class Texture2D {
public:
ComPtr<ID3D11ShaderResourceView> ShaderResourceView;
ComPtr<ID3D11Texture2D> Texture;
2020-07-18 14:53:26 +02:00
Texture2D() = default;
2020-06-21 11:51:46 +02:00
Texture2D(ID3D11Device* device, int w, int h, byte* data);
Texture2D(ID3D11Device* device, const std::wstring& fileName);
2020-07-18 14:53:26 +02:00
~Texture2D() = default;
2020-06-21 11:51:46 +02:00
Texture2D(ID3D11Device* device, byte* data, int length);
};
}