- Timestamp:
- 01/05/07 19:31:43 (18 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing/src
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/GlRenderer.cpp
r1942 r1944 109 109 { 110 110 Triangle3 &t = object->GetItem(); 111 111 112 glBegin(GL_TRIANGLES); 112 113 glVertex3f(t.mVertices[0].x, t.mVertices[0].y, t.mVertices[0].z); … … 126 127 if (mUseFalseColors) 127 128 SetupFalseColor(object->mId); 128 glColor3f(1, 1,1); 129 129 130 130 switch (object->Type()) { 131 131 case Intersectable::MESH_INSTANCE: … … 253 253 GlRenderer::SetupFalseColor(const int id) 254 254 { 255 256 255 // swap bits of the color 256 glColor3ub(id&255, (id>>8)&255, (id>>16)&255); 257 257 } 258 258 … … 276 276 277 277 if (!mUseFalseColors && !mUseForcedColors) 278 SetupMaterial(mesh->mMaterial);278 SetupMaterial(mesh->mMaterial); 279 279 280 280 for (i=0; i < mesh->mFaces.size(); i++) { -
GTP/trunk/Lib/Vis/Preprocessing/src/GlRenderer.h
r1940 r1944 178 178 Vector3 mDirection; 179 179 }; 180 180 friend class GlobalLinesRenderer; 181 181 protected: 182 182
Note: See TracChangeset
for help on using the changeset viewer.