// Copyright (C) 2023 Jérôme "Lynix" Leclercq (lynix680@gmail.com) // This file is part of the "Nazara Engine - Utility module" // For conditions of distribution and use, see copyright notice in Config.hpp #include #include #include namespace Nz { AbstractImage::~AbstractImage() = default; UInt8 AbstractImage::GetBytesPerPixel() const { return PixelFormatInfo::GetBytesPerPixel(GetFormat()); } bool AbstractImage::IsCompressed() const { return PixelFormatInfo::IsCompressed(GetFormat()); } bool AbstractImage::IsCubemap() const { return GetType() == ImageType::Cubemap; } }