|
ContRap-Libraries
|
Class GLMeshData is a basis class for custom mesh information. More...
#include <glmesh.h>
Public Member Functions | |
| virtual | ~GLMeshData () |
| Virtual destructor. | |
| virtual GLMeshData * | copy () const =0 |
| Copies the internal representation. | |
| virtual const GLVertex * | get_vertex (int index) const =0 |
| Returns an indexed vertex of the mesh. | |
| virtual const GLPixel * | get_texture_coords (int index) const |
| Returns indexed texture coordinates. | |
| virtual const GLColor * | get_color (int index) const |
| Returns the indexed color of the mesh. | |
| virtual const GLMeshTriangle * | get_triangle (int index) const =0 |
| Returns an indexed triangle of the mesh. | |
| virtual const GLTexture * | get_texture (int index) const =0 |
| Returns an indexed texture of the mesh. | |
| virtual int | get_size () const =0 |
| Returns the number of triangles. | |
| virtual bool | is_textured () const |
| Returns true if the mesh is textured. | |
Class GLMeshData is a basis class for custom mesh information.
| virtual crp::GLMeshData::~GLMeshData | ( | ) | [inline, virtual] |
Virtual destructor.
| virtual GLMeshData* crp::GLMeshData::copy | ( | ) | const [pure virtual] |
Copies the internal representation.
| virtual const GLColor* crp::GLMeshData::get_color | ( | int | index | ) | const [inline, virtual] |
Returns the indexed color of the mesh.
If the color value returns a zero pointer, the whole triangle is not drawn.
| index | Index of the color. |
| virtual int crp::GLMeshData::get_size | ( | ) | const [pure virtual] |
Returns the number of triangles.
| virtual const GLTexture* crp::GLMeshData::get_texture | ( | int | index | ) | const [pure virtual] |
Returns an indexed texture of the mesh.
| index | Index of the texture. |
| virtual const GLPixel* crp::GLMeshData::get_texture_coords | ( | int | index | ) | const [inline, virtual] |
Returns indexed texture coordinates.
If the texture coordinates return a zero pointer, the whole triangle is not drawn.
| index | Index of the coordinates. |
| virtual const GLMeshTriangle* crp::GLMeshData::get_triangle | ( | int | index | ) | const [pure virtual] |
Returns an indexed triangle of the mesh.
| index | Index of the triangle. |
| virtual const GLVertex* crp::GLMeshData::get_vertex | ( | int | index | ) | const [pure virtual] |
Returns an indexed vertex of the mesh.
If a vertex returns the zero pointer the whole triangle comprising this vertex is not drawn. This is a way to control drawing of triangle on a vertex level.
| index | Index of the vertex. |
| virtual bool crp::GLMeshData::is_textured | ( | ) | const [inline, virtual] |
Returns true if the mesh is textured.
1.7.3