contour-creator/src/main.cpp

18 lines
429 B
C++
Raw Normal View History

2024-04-06 11:18:28 +00:00
#include "HeightMap.hh"
2024-04-06 15:22:03 +00:00
#include <iostream>
2024-04-06 11:18:28 +00:00
int main(int argc, const char* argv[])
{
const char* filepath = argv[1];
HeightMap map(filepath);
std::cout << "x: " << map.x_size << " y: " << map.y_size << "\n";
for (int y = 0; y < map.y_size; y++)
{
for (int x = 0; x < map.x_size; x++)
{
std::cout << map.get_pixel(x, y) << " ";
}
std::cout << "\n";
}
}