GlistEngine
Loading...
Searching...
No Matches
gTerrain.h
Go to the documentation of this file.
1/*
2 * gTerrain.h
3 *
4 * Created on: 24 Žub 2026
5 * Author: Engin Kutlu
6 */
7
8#ifndef GRAPHICS_PRIMITIVES_GTERRAIN_H_
9#define GRAPHICS_PRIMITIVES_GTERRAIN_H_
10
11#include "gMesh.h"
12
13class gTerrain: public gMesh {
14public:
16 virtual ~gTerrain();
17
18 void generateTerrain(const std::string& heightMapPath, int widthSegments, int depthSegments, float cellSize, float maxHeight);
19 bool saveAsObj(const std::string& path, const std::string& textureName);
20};
21
22#endif /* GRAPHICS_PRIMITIVES_GTERRAIN_H_ */
Definition gMesh.h:27
Definition gTerrain.h:13
virtual ~gTerrain()
bool saveAsObj(const std::string &path, const std::string &textureName)
void generateTerrain(const std::string &heightMapPath, int widthSegments, int depthSegments, float cellSize, float maxHeight)