Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
clusterloader.h
1 #pragma once
2 
3 #include <fstream>
4 #include <string>
5 #include <vector>
6 
7 #include <glm/glm.hpp>
8 
9 class Voxel;
10 class VoxelCluster;
11 
13 
14 public:
15  ClusterLoader();
16  void load(const std::string &filename, std::vector<Voxel*> *list);
17 
18 private:
19  void readDimensionsCsv();
20  void readCsv(std::vector<Voxel*> *list);
21  void splitStr(const std::string &s, char delim, std::vector<std::string> &elems);
22  void loadCsv(std::vector<Voxel*> *list);
23  void loadZox(std::vector<Voxel*> *list);
24  void readZox(std::string &content, std::vector<Voxel*> *list);
25 
26 private:
27  std::ifstream* m_inputStream;
28  glm::ivec3 m_dimensions;
29 };
Definition: voxelcluster.h:21
Definition: clusterloader.h:12
Definition: voxel.h:15