gwnavgeneration/common/bitarray2d_1024.h Source File
Go to the documentation of this file.
12 #ifndef GwNavGen_BitArray2d_1024_H
13 #define GwNavGen_BitArray2d_1024_H
28 BitArray2d_1024(MemoryHeap* heap);
36 KY_DEBUG_ASSERTN(x >= 0 && x < m_countX && y >= 0 && y < m_countY, (
"Pixel is outside bounds"));
37 m_lineBitArray.SetBit(y);
38 m_pixelBitArrays[y].SetBit(x);
43 KY_DEBUG_ASSERTN(x >= 0 && x < m_countX && y >= 0 && y < m_countY, (
"Pixel is outside bounds"));
44 return m_pixelBitArrays[y].GetBit(x) != 0;
47 KyInt32 GetFirstY()
const {
return m_lineBitArray.GetFirstBitIdx(); }
48 KyInt32 GetLastY()
const {
return m_lineBitArray.GetLastBitIdx(); }
50 KyInt32 GetFirstX(
KyInt32 y)
const {
return m_pixelBitArrays[y].GetFirstBitIdx(); }
51 KyInt32 GetLastX(
KyInt32 y)
const {
return m_pixelBitArrays[y].GetLastBitIdx(); }
65 BitArray_1024 m_lineBitArray;
66 KyArrayTLS<BitArray_1024> m_pixelBitArrays;
68 KyArrayTLS_POD<KyUInt32> m_lineBitsMem;
69 KyArrayTLS_POD<KyUInt32> m_pixelBitsMem;
KyInt32 KyResult
Defines a type that can be returned by methods or functions in the Gameware Navigation SDK to indicat...
Definition: types.h:254
int KyInt32
Type used internally to represent a 32-bit integer.
Definition: types.h:35
Definition: gamekitcrowddispersion.h:20
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:137