14 lines
426 B
C++
14 lines
426 B
C++
/**
|
|
@brief stores the cases from marching squars for one elevation level
|
|
*/
|
|
#include <cstdint>
|
|
class CaseMap
|
|
{
|
|
public:
|
|
uint8_t* cases; //!< pointer to the first case in the array. uint8_t is a 8 bit unsigned integer
|
|
int width; //!< width of image in cases
|
|
int height; //!< height of image in cases
|
|
|
|
CaseMap(int width, int height, uint8_t* cases);
|
|
int get_case(int x,int y);
|
|
}; |