Waterflow
Visualize water in terrain
|
00001 00002 00003 00004 #ifndef FILEHANDLER_H 00005 #define FILEHANDLER_H 00006 00007 #include <fstream> 00008 #include <string.h> 00009 #include <vector> 00010 #include <cstdint> 00011 00018 class FileHandler 00019 { 00020 private: 00021 float* fArray; 00022 int arrayLength; 00023 int width; 00024 int height; 00025 public: 00034 FileHandler(int dWidth, int dHeight); 00035 00041 void SaveData(std::string path); 00042 00050 int LoadData(std::string path); 00051 00054 float** GetArray(); 00055 00058 int GetArrayLength(); 00059 00062 int GetDataWidth(); 00063 00066 int GetDataHeight(); 00067 }; 00068 00069 #endif // FILEHANDLER_H