6 #ifndef _INC_CMapChanSurface_H
7 #define _INC_CMapChanSurface_H
40 return m_pSurf + (py*m_iPitch) + px;
46 if (m_pSurf ==
nullptr)
48 return *GetSurfPtr(px, py);
52 if (m_pSurf !=
nullptr)
#define GRAYMAPDATA_LINK
Definition: GrayMapData.h:13
#define IS_INDEX_GOOD(i, q)
cast the (likely) int to unsigned to check for negatives.
Definition: Index.h:35
#define ASSERT(exp)
Definition: cDebugAssert.h:87
Definition: cMapChanSurface.h:17
void EmptySurf()
Definition: cMapChanSurface.h:50
MAP_SURFACE_ID_t GetSurf(MAP_PATCH_POINT_t px, MAP_PATCH_POINT_t py) const
Definition: cMapChanSurface.h:42
~CMapChanSurface()
Definition: cMapChanSurface.h:33
CMapChanSurface()
Definition: cMapChanSurface.h:28
MAP_SURFACE_ID_t * GetSurfPtr(MAP_PATCH_POINT_t px, MAP_PATCH_POINT_t py) const
Definition: cMapChanSurface.h:37
Definition: GrayMapData.cpp:12
int MAP_PATCH_POINT_t
this gives the number of samples in the heightmap file: 128 means a 129x129 file (include skirt pixel...
Definition: cMapBase.h:42
BYTE MAP_SURFACE_ID_t
Definition: cMapBase.h:114
@ MAP_SURFACE_Legacy
For MAP_CHANNEL_Surface.
Definition: cMapBase.h:118