engine/include/resources/texture.hpp

23 lines
319 B
C++
Raw Normal View History

2022-09-02 11:06:59 +00:00
#pragma once
2022-09-07 09:02:01 +00:00
#include "engine_api.h"
2022-09-02 23:02:09 +00:00
2022-09-02 11:06:59 +00:00
#include "resource.hpp"
#include "gfx_device.hpp"
2022-09-02 11:06:59 +00:00
2022-10-06 10:30:44 +00:00
namespace engine::resources {
2022-09-02 11:06:59 +00:00
2022-09-03 04:56:51 +00:00
class ENGINE_API Texture : public Resource {
2022-09-02 11:06:59 +00:00
public:
Texture(const std::filesystem::path& resPath);
~Texture() override;
2022-11-11 16:18:22 +00:00
gfx::Texture* getHandle();
private:
gfx::Texture* m_gpuTexture;
2022-09-02 11:06:59 +00:00
};
}