Back to index

extremetuxracer  0.5beta
Functions
FTGLTextureFont.cpp File Reference
#include <cassert>
#include <string>
#include "FTGLTextureFont.h"
#include "FTTextureGlyph.h"

Go to the source code of this file.

Functions

GLuint NextPowerOf2 (GLuint in)

Function Documentation

GLuint NextPowerOf2 ( GLuint  in) [inline]

Definition at line 8 of file FTGLTextureFont.cpp.

{
     in -= 1;

     in |= in >> 16;
     in |= in >> 8;
     in |= in >> 4;
     in |= in >> 2;
     in |= in >> 1;

     return in + 1;
}