TerraForge3D  2.3.1
3D Terrain And Landscape Generator
Mesh Class Reference

Public Member Functions

void RecalculateNormals ()
 
void GeneratePlane (int resolution, float scale, float textureScale=1.0f)
 
void GenerateScreenQuad (float dist=0)
 
void GenerateIcoSphere (int resolution, float radius, float textureScale=1.0f)
 
void SetElevation (float elevation, int x, int y)
 
float GetElevation (int x, int y)
 
void AddElevation (float elevation, int x, int y)
 
glm::vec2 GetTexCoord (float x, float y, float z)
 
glm::vec3 GetNormals (int x, int y)
 
void ClearNormals ()
 
MeshClone ()
 
bool IsValid ()
 

Public Attributes

Vertvert
 
int * indices
 
int vertexCount
 
int indexCount
 
int res
 
float sc
 
float texSc
 
float maxHeight = -100
 
float minHeight = 100
 
bool deleteOnDestruction = true
 

Private Attributes

MeshType currType
 
glm::vec3 right = glm::vec3(1.0f, 0.0f, 0.0f)
 
glm::vec3 front = glm::vec3(0.0f, 0.0f, -1.0f)
 

Detailed Description

Definition at line 20 of file Mesh.h.


The documentation for this class was generated from the following files: