Trivial class to represent a simple triangular mesh
Trivial class to represent a simple triangular mesh.Version History
- 0.2 First Release.
- 0.2s Added Color mesh loading and drawing, smooth normals computation and resizing.
- 0.4 Added Normal Mesh Loading, Display lists, Vertex arrays,
- 0.5 Added texture name member, texture loading function and simple xy planar mapping ot texture coordinates.
The Open function understand the type of the file from the extension.
It manages the standard ".raw" and the new "*.rawc" (mesh with per vertex color).
The loading of a "rawc" is done by the OpenColor function
~Mesh()
vector<Triangle> T
int dl
GLuint ti
int Draw()
void GenerateDL()
int DrawDL()
int DrawA()
void Open(char *filename)
1 1 1 -1 -1 1 1 -1 -1
-1 -1 1 1 1 1 -1 1 -1
1 -1 -1 -1 -1 1 -1 1 -1
-1 1 -1 1 -1 -1 1 1 1
bool has_color
void OpenTexture(char *filename)
void OpenColor(char *filename)
1 1 1 -1 -1 1 1 -1 -1 1 0 0 1 0 0 0 0 1
-1 -1 1 1 1 1 -1 1 -1 1 0 0 1 0 0 0 0 1
1 -1 -1 -1 -1 1 -1 1 -1 0 0 1 1 0 0 0 0 1
-1 1 -1 1 -1 -1 1 1 1 0 0 1 0 0 1 1 0 0
void OpenNormal(char *filename)
void Smooth()
void Normalize(float size=1)
Alphabetic index HTML hierarchy of classes or Java