PolyTerrain.h 817 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * PolyTerrain.h
  3. * Poly
  4. *
  5. * Created by Ivan Safrin on 2/20/09.
  6. * Copyright 2009 __MyCompanyName__. All rights reserved.
  7. *
  8. */
  9. // @package Scene
  10. #pragma once
  11. #include "PolyGlobals.h"
  12. #include "PolySceneMesh.h"
  13. #include "PolyCoreServices.h"
  14. #include <string>
  15. using std::string;
  16. namespace Polycode {
  17. class _PolyExport Terrain : public SceneMesh {
  18. public:
  19. Terrain(int type, string heightmapFile, bool smooth, float tileAmt, float xDensity, float zDensity, float sx, float sz, float height);
  20. ~Terrain();
  21. Vector3 getTerrainDataScale() { return terrainDataScale; }
  22. static const int BASIC = 0;
  23. private:
  24. void createBasic(string heightmapFile, bool smooth, float tileAmt, float xDensity, float zDensity, float sx, float sz, float height);
  25. Vector3 terrainDataScale;
  26. };
  27. }