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

42 lines
526 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}
{}
Texture::~Texture()
{}
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
}