Heightmap.h 582 B

123456789101112131415161718192021222324252627
  1. #ifndef HEIGHTMAP_H_
  2. #define HEIGHTMAP_H_
  3. #include "Node.h"
  4. namespace gameplay
  5. {
  6. class Heightmap
  7. {
  8. public:
  9. /**
  10. * Generates heightmap data and saves the result to the specified filename (PNG file).
  11. *
  12. * @param nodeIds List of node ids to include in the heightmap generation.
  13. * @param filename Output PNG file to write the heightmap image to.
  14. * @param highP Use packed 24-bit (RGB) instead of standard 8-bit grayscale.
  15. */
  16. static void generate(const std::vector<std::string>& nodeIds, const char* filename, bool highP = false);
  17. };
  18. }
  19. #endif