Back to index

supertuxkart  0.5+dfsg1
Public Member Functions
TriangleGlDrawcallback Class Reference
Inheritance diagram for TriangleGlDrawcallback:
Inheritance graph
[legend]
Collaboration diagram for TriangleGlDrawcallback:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void internalProcessTriangleIndex (btVector3 *triangle, int partId, int triangleIndex)

Detailed Description

Definition at line 251 of file GL_ShapeDrawer.cpp.


Member Function Documentation

virtual void TriangleGlDrawcallback::internalProcessTriangleIndex ( btVector3 triangle,
int  partId,
int  triangleIndex 
) [inline, virtual]

Implements btInternalTriangleIndexCallback.

Definition at line 254 of file GL_ShapeDrawer.cpp.

       {
              (void)triangleIndex;
              (void)partId;


              glBegin(GL_TRIANGLES);//LINES);
              glColor3f(1, 0, 0);
              glVertex3d(triangle[0].getX(), triangle[0].getY(), triangle[0].getZ());
              glVertex3d(triangle[1].getX(), triangle[1].getY(), triangle[1].getZ());
              glColor3f(0, 1, 0);
              glVertex3d(triangle[2].getX(), triangle[2].getY(), triangle[2].getZ());
              glVertex3d(triangle[1].getX(), triangle[1].getY(), triangle[1].getZ());
              glColor3f(0, 0, 1);
              glVertex3d(triangle[2].getX(), triangle[2].getY(), triangle[2].getZ());
              glVertex3d(triangle[0].getX(), triangle[0].getY(), triangle[0].getZ());
              glEnd();
       }

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