hyporo-cpp/source/hyporo/gpu/texture.hpp

42 lines
537 B
C++
Raw Normal View History

2022-10-03 18:51:34 +05:00
#pragma once
#include "context.hpp"
#include <string>
namespace hpr::gpu
{
class Texture : public Context
{
protected:
std::string p_filename;
int p_width;
int p_height;
public:
// Constructors
Texture();
2022-11-18 21:50:49 +05:00
explicit
2022-10-03 18:51:34 +05:00
Texture(DeviceAPI api);
2022-11-18 21:50:49 +05:00
~Texture() override;
2022-10-03 18:51:34 +05:00
// Member functions
2022-11-18 21:50:49 +05:00
[[nodiscard]]
2022-10-05 21:10:51 +05:00
std::string filename() const;
2022-10-03 18:51:34 +05:00
2022-11-18 21:50:49 +05:00
[[nodiscard]]
2022-10-05 21:10:51 +05:00
int width() const;
2022-10-03 18:51:34 +05:00
2022-11-18 21:50:49 +05:00
[[nodiscard]]
2022-10-05 21:10:51 +05:00
int height() const;
2022-10-03 18:51:34 +05:00
};
} // end namespace hpr::gpu