mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-07 11:13:53 +03:00
20 lines
494 B
C++
20 lines
494 B
C++
#pragma once
|
|
#include <d3d11.h>
|
|
#include <string>
|
|
#include <wrl/client.h>
|
|
namespace TEN::Renderer {
|
|
using Microsoft::WRL::ComPtr;
|
|
class Texture2D {
|
|
public:
|
|
ComPtr<ID3D11ShaderResourceView> ShaderResourceView;
|
|
ComPtr<ID3D11Texture2D> Texture;
|
|
Texture2D() = default;
|
|
Texture2D(ID3D11Device* device, int w, int h, byte* data);
|
|
Texture2D(ID3D11Device* device, const std::wstring& fileName);
|
|
|
|
~Texture2D() = default;
|
|
|
|
Texture2D(ID3D11Device* device, byte* data, int length);
|
|
};
|
|
|
|
}
|