ContRap-Libraries
Public Member Functions

crp::GLIndexTriangle Class Reference

Class GLTriangle represents triangles constructed from already existing points. More...

#include <gltriangle.h>

Inheritance diagram for crp::GLIndexTriangle:
crp::GLPrimitive

Public Member Functions

 GLIndexTriangle (GLPoint *a, GLPoint *b, GLPoint *c)
 Creates the triangle.
 ~GLIndexTriangle ()
 Destructor.
void make_display_list (GLStyle flags) const
 Draws the point into an OpenGL display list.
GLPrimitiveType get_type ()
 Type of the primitive.
void set_texture (GLuint texture)
 Sets the texture handle.

Detailed Description

Class GLTriangle represents triangles constructed from already existing points.


Constructor & Destructor Documentation

crp::GLIndexTriangle::GLIndexTriangle ( GLPoint a,
GLPoint b,
GLPoint c 
)

Creates the triangle.

crp::GLIndexTriangle::~GLIndexTriangle ( )

Destructor.


Member Function Documentation

GLPrimitiveType crp::GLIndexTriangle::get_type ( ) [inline]

Type of the primitive.

Returns:
Type name of the primitive
void crp::GLIndexTriangle::make_display_list ( GLStyle  flags) const

Draws the point into an OpenGL display list.

void crp::GLIndexTriangle::set_texture ( GLuint  texture) [inline]

Sets the texture handle.


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