d840165a32
- `etc` module was renamed to `etcpak` and modified to use the new library. - PKM importer is removed in the process, it's obsolete. - Old library `etc2comp` is removed. - S3TC compression no longer done via `squish` (but decompression still is). - Slight modifications to etcpak sources for MinGW compatibility, to fix LLVM `-Wc++11-narrowing` errors, and to allow using vendored or system libpng. Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
12 lines
195 B
C++
12 lines
195 B
C++
#ifndef __MIPMAP_HPP__
|
|
#define __MIPMAP_HPP__
|
|
|
|
#include "Vector.hpp"
|
|
|
|
inline int NumberOfMipLevels( const v2i& size )
|
|
{
|
|
return (int)floor( log2( std::max( size.x, size.y ) ) ) + 1;
|
|
}
|
|
|
|
#endif
|