#include "heightmap.h" #include #include #include #include "debug.h" #include "compiler.h" Heightmap::Heightmap(const char* fileName, float scaling, int displaylistResolution, int vertexResolution) { this->scaleFactor = scaling; this->setName(fileName); this->import(fileName); //this->finalize(); } Heightmap::~Heightmap () { } bool Heightmap::import (const char* fileName) { PRINTF(4)("preparing to read in file: %s\n", fileName); // using SDL-image to load the bitmap this->bitmap = IMG_Load(fileName); return true; }