Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

# KeosUtil.h File Reference

`#include "KeosPrerequisites.h"`

Go to the source code of this file.

## Namespaces

namespace | Keos

## Functions

uint | NearestPowerOfTwo (uint nValue)
| Return the nearest powewer of two of a number.

## Function Documentation

uint NearestPowerOfTwo | ( | uint | nValue | ) | `[inline]`

| Return the nearest powewer of two of a number.

Parameters:

  | nValue | Number to test.

Returns:
  The nearest power of two.

Definition at line 32 of file KeosUtil.h.

Referenced by Keos::CTexture::Load().