Video Backends: Move and rename HostTextureFormat to AbstractTextureFormat

This commit is contained in:
iwubcode
2017-06-12 12:37:28 -05:00
parent 2cdc93f4ab
commit e4896d39bd
14 changed files with 54 additions and 55 deletions

View File

@ -532,7 +532,7 @@ bool HiresTexture::LoadTexture(Level& level, const std::vector<u8>& buffer)
// Images loaded by SOIL are converted to RGBA.
level.width = static_cast<u32>(width);
level.height = static_cast<u32>(height);
level.format = HostTextureFormat::RGBA8;
level.format = AbstractTextureFormat::RGBA8;
level.data = ImageDataPointer(data, SOIL_free_image_data);
level.row_length = level.width;
level.data_size = static_cast<size_t>(level.row_length) * 4 * level.height;
@ -554,7 +554,7 @@ HiresTexture::~HiresTexture()
{
}
HostTextureFormat HiresTexture::GetFormat() const
AbstractTextureFormat HiresTexture::GetFormat() const
{
return m_levels.at(0).format;
}