Little clarifying API doc for nearestPowerOfTwo().
svn path=/branches/work/kwin_composite/; revision=659150
This commit is contained in:
parent
72f2d412c1
commit
17ae1620ac
1 changed files with 4 additions and 0 deletions
|
@ -55,6 +55,10 @@ bool KWIN_EXPORT hasGLExtension(const QString& extension);
|
|||
void KWIN_EXPORT checkGLError( const char* txt );
|
||||
|
||||
inline bool KWIN_EXPORT isPowerOfTwo( int x ) { return (( x & ( x - 1 )) == 0 ); }
|
||||
/**
|
||||
* @return power of two integer _greater or equal to_ x.
|
||||
* E.g. nearestPowerOfTwo(513) = nearestPowerOfTwo(800) = 1024
|
||||
**/
|
||||
int KWIN_EXPORT nearestPowerOfTwo( int x );
|
||||
|
||||
#ifdef HAVE_OPENGL
|
||||
|
|
Loading…
Reference in a new issue