ContRap-Libraries
Public Member Functions

crp::GLTriangle Class Reference

Class GLTriangle represents triangles in the three-dimensional space. More...

#include <gltriangle.h>

Inheritance diagram for crp::GLTriangle:
crp::GLPrimitive

Public Member Functions

 GLTriangle (const GLVertex &a, const GLVertex &b, const GLVertex &c)
 Constructor from three points.
 ~GLTriangle ()
 Destructor.
void make_display_list (int flags) const
 Draws the point into an OpenGL display list.
GLPrimitiveType get_type () const
 Type of the primitive.

Detailed Description

Class GLTriangle represents triangles in the three-dimensional space.


Constructor & Destructor Documentation

crp::GLTriangle::GLTriangle ( const GLVertex a,
const GLVertex b,
const GLVertex c 
)

Constructor from three points.

Parameters:
aBase point of the triangle
bFirst side point
cSecond side point
crp::GLTriangle::~GLTriangle ( )

Destructor.


Member Function Documentation

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

Type of the primitive.

Returns:
Type name of the primitive

Implements crp::GLPrimitive.

void crp::GLTriangle::make_display_list ( int  flags) 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: