#include <glbitarray.h>
Public Member Functions | |
U32 | IsSet (int x, int y) const |
Check if (x,y) is set. Returns non-0 if set, 0 if not. | |
void | Set (int x, int y) |
Set (x,y) true. | |
void | Clear (int x, int y) |
Clear the bit at (x,y). | |
void | ClearRect (const Rectangle2I &rect) |
Clear a rectangle of bits. | |
void | SetRect (const Rectangle2I &rect) |
Clear a rectangle of bits. | |
bool | IsRectEmpty (const Rectangle2I &rect) const |
Check if a rectangle is empty. | |
bool | IsRectSet (const Rectangle2I &rect) const |
Check if a rectangle is completely set. | |
void | ClearAll () |
Clear all the bits. | |
void | SetAll () |
Set all the bits. | |
void | CacheY (int y) |
Fast access - cache the y then query the x with IsSetCache. | |
U32 | IsSetCache (int x) |
Query the x at the cached y value. |
Maps a bit to a 2 dimensional coordinate. Very useful for efficiently storing 2 dimensional boolean information. Constructed with 'size' parameters templatized.