A BG1 tile mask. In other words, this is a 16x16bit twodimensional vector. More...
#include <sifteo/video/bg1.h>
Public Member Functions  
void  clear () 
Erase a TileMask, setting all bits to zero.  
void  fill (UInt2 topLeft, UInt2 size) 
Mark a rectangular region of the bitmap. More...  
BG1Mask  operator& (BG1Mask other) const 
Bitwise AND with another mask.  
BG1Mask &  operator&= (BG1Mask other) 
Bitwise AND with another mask.  
BG1Mask  operator^ (BG1Mask other) const 
Bitwise XOR with another mask.  
BG1Mask &  operator^= (BG1Mask other) 
Bitwise XOR with another mask.  
BG1Mask  operator (BG1Mask other) const 
Bitwise OR with another mask.  
BG1Mask &  operator= (BG1Mask other) 
Bitwise OR with another mask.  
BG1Mask  operator~ () const 
Bitwise complement.  
void  plot (unsigned x, unsigned y) 
Mark one tile in the bitmap, given as (x,y) coordinates. More...  
void  plot (UInt2 pos) 
Mark one tile in the bitmap, given as a vector. More...  
uint16_t *  rows () 
Get a pointer to the rows in this mask, as 16bit integers.  
Static Public Member Functions  
static BG1Mask  empty () 
Create an empty mask. All bits are zero.  
static BG1Mask  filled (UInt2 topLeft, UInt2 size) 
Create a mask with a filled rectangle it. More...  
A BG1 tile mask. In other words, this is a 16x16bit twodimensional vector.
It is optimized for compiletime arithmetic, so that it's easy and efficient to build up static masks which correspond to a particular screen layout or asset layout. But these vectors can also be used to easily implement some fairly complex logic at runtime. They support boolean operations, which can be used for geometric union, intersection, and subtraction operations.
Mark a rectangular region of the bitmap.
All coordinates must be in range. This function performs no clipping.
Create a mask with a filled rectangle it.
This should be used only with values that are constant at compiletime. For dynamic masks, it is significantly better to plot the rectangle dynamically using fill().
All coordinates must be in range. This function performs no clipping.

inline 
Mark one tile in the bitmap, given as (x,y) coordinates.
All coordinates must be in range. This function performs no clipping.

inline 
Mark one tile in the bitmap, given as a vector.
All coordinates must be in range. This function performs no clipping.
Sifteo SDK v1.1.0 (see all versions)
Last updated Tue Dec 23 2014, by Doxygen