#include <lugre_bitmask.h>


Public Member Functions | |
| cBitMask () | |
| virtual | ~cBitMask () |
| void | SetDataFromOgreImage (Ogre::Image &pImage, float fMinAlpha=0.5) |
| bit is set if pixel_alpha >= fMinAlpha | |
| void | SetDataFrom16BitImage (const short *pImageData16Bit, const int w, const int h) |
| transparent = false | |
| void | Reset () |
| void | BlankData (const int w, const int h) |
| allocate and init to zero/false | |
| bool | GetWrap () |
| void | SetWrap (const bool bWrap) |
| bool | TestBit (int x, int y) |
Static Public Member Functions | |
| static void | LuaRegister (lua_State *L) |
| lua binding | |
Public Attributes | |
| char * | mpData |
| int | miW |
| int | miH |
| bool | mbWrap |
Definition at line 35 of file lugre_bitmask.h.
| Lugre::cBitMask::cBitMask | ( | ) |
Definition at line 8 of file lugre_bitmask.cpp.
| Lugre::cBitMask::~cBitMask | ( | ) | [virtual] |
| void Lugre::cBitMask::SetDataFromOgreImage | ( | Ogre::Image & | pImage, | |
| float | fMinAlpha = 0.5 | |||
| ) |
bit is set if pixel_alpha >= fMinAlpha
Definition at line 11 of file lugre_bitmask.cpp.
References BlankData(), and mpData.
| void Lugre::cBitMask::SetDataFrom16BitImage | ( | const short * | pImageData16Bit, | |
| const int | w, | |||
| const int | h | |||
| ) |
transparent = false
Definition at line 21 of file lugre_bitmask.cpp.
References BlankData(), and mpData.
| void Lugre::cBitMask::Reset | ( | ) |
Definition at line 38 of file lugre_bitmask.cpp.
References miH, miW, and mpData.
Referenced by BlankData(), and ~cBitMask().
| void Lugre::cBitMask::BlankData | ( | const int | w, | |
| const int | h | |||
| ) |
allocate and init to zero/false
Definition at line 29 of file lugre_bitmask.cpp.
References miH, miW, mpData, and Reset().
Referenced by SetDataFrom16BitImage(), and SetDataFromOgreImage().
| bool Lugre::cBitMask::GetWrap | ( | ) | [inline] |
| void Lugre::cBitMask::SetWrap | ( | const bool | bWrap | ) | [inline] |
| bool Lugre::cBitMask::TestBit | ( | int | x, | |
| int | y | |||
| ) | [inline] |
Definition at line 48 of file lugre_bitmask.h.
References mbWrap, miH, miW, and mpData.
Referenced by Lugre::cWidget::IsUnderPos().
| void Lugre::cBitMask::LuaRegister | ( | lua_State * | L | ) | [static] |
| char* Lugre::cBitMask::mpData |
Definition at line 36 of file lugre_bitmask.h.
Referenced by BlankData(), Reset(), SetDataFrom16BitImage(), SetDataFromOgreImage(), and TestBit().
1.5.6