#include "supertux/gameconfig.hpp"
#include "video/gl/gl_texture.hpp"
Go to the source code of this file.
Functions | |
bool | is_power_of_2 (int v) |
int | next_power_of_two (int val) |
bool @514::is_power_of_2 | ( | int | v | ) | [inline, static] |
int @514::next_power_of_two | ( | int | val | ) | [inline, static] |
Definition at line 27 of file gl_texture.cpp.
Referenced by GLTexture::GLTexture().
00028 { 00029 int result = 1; 00030 while(result < val) 00031 result *= 2; 00032 return result; 00033 }