// Copyright (C) 2020 Jérôme Leclercq // This file is part of the "Nazara Engine - Renderer module" // For conditions of distribution and use, see copyright notice in Config.hpp #include #include namespace Nz { inline unsigned int Texture::GetLevelSize(unsigned int size, unsigned int level) { if (size == 0) // Possible dans le cas d'une image invalide return 0; return std::max(size >> level, 1U); } } #include