blob: d3b4bc9e7cf67109e7277f2b926d4eb0f97e67ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#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
|