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

41 lines
533 B
C++
Raw Normal View History

2022-10-03 18:51:34 +05:00
#include "texture.hpp"
namespace hpr::gpu
{
Texture::Texture() :
Context {DeviceAPI::Unknown},
p_filename {},
p_width {0},
p_height {0}
{}
Texture::Texture(DeviceAPI api) :
Context {api},
p_filename {},
p_width {0},
p_height {0}
{}
2022-11-18 21:50:49 +05:00
Texture::~Texture() = default;
2022-10-03 18:51:34 +05:00
2022-10-05 21:10:51 +05:00
std::string Texture::filename() const
{
return p_filename;
}
int Texture::width() const
{
return p_width;
}
int Texture::height() const
{
return p_height;
}
2022-10-03 18:51:34 +05:00
}