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
13
class
gTerrain
:
public
gMesh
{
14
public
:
15
gTerrain
();
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_ */
gMesh
Definition
gMesh.h:27
gTerrain
Definition
gTerrain.h:13
gTerrain::~gTerrain
virtual ~gTerrain()
gTerrain::saveAsObj
bool saveAsObj(const std::string &path, const std::string &textureName)
gTerrain::gTerrain
gTerrain()
gTerrain::generateTerrain
void generateTerrain(const std::string &heightMapPath, int widthSegments, int depthSegments, float cellSize, float maxHeight)
gMesh.h
engine
graphics
gTerrain.h
Generated by
1.9.8