ContRap-Libraries
Public Member Functions

crp::GLMesh Class Reference

Class GLMesh represents a meshed triangulated surface with texture data. More...

#include <glmesh.h>

Inheritance diagram for crp::GLMesh:
crp::GLPrimitive

Public Member Functions

 GLMesh (const GLMeshData &mesh, const GLVertex &position)
 Constructor from the coordinates of the point.
 ~GLMesh ()
 Destructor.
void make_display_list (int style) const
 Draws the point into an OpenGL display list.
virtual GLPrimitiveType get_type () const
 Type of the primitive.

Detailed Description

Class GLMesh represents a meshed triangulated surface with texture data.


Constructor & Destructor Documentation

crp::GLMesh::GLMesh ( const GLMeshData mesh,
const GLVertex position 
)

Constructor from the coordinates of the point.

Parameters:
meshTexture of the picture
positionPosition of the primitive
widthWidth of the image
heightHeight of the image
pxDisplacement to the image center in image coordinates
pyDisplacement to the image center in image coordinates
crp::GLMesh::~GLMesh ( )

Destructor.


Member Function Documentation

virtual GLPrimitiveType crp::GLMesh::get_type ( ) const [inline, virtual]

Type of the primitive.

Returns:
Type name of the primitive

Implements crp::GLPrimitive.

void crp::GLMesh::make_display_list ( int  style) const [virtual]

Draws the point into an OpenGL display list.

Parameters:
flagsStyle flags used to filter out drawing

Implements crp::GLPrimitive.


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