Changeset 1944


Ignore:
Timestamp:
01/05/07 19:31:43 (18 years ago)
Author:
mattausch
Message:

worked on global lines

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  
    109109{ 
    110110  Triangle3 &t = object->GetItem(); 
     111   
    111112  glBegin(GL_TRIANGLES); 
    112113  glVertex3f(t.mVertices[0].x, t.mVertices[0].y, t.mVertices[0].z); 
     
    126127  if (mUseFalseColors) 
    127128        SetupFalseColor(object->mId); 
    128   glColor3f(1, 1,1); 
    129  
     129   
    130130  switch (object->Type()) { 
    131131  case Intersectable::MESH_INSTANCE: 
     
    253253GlRenderer::SetupFalseColor(const int id) 
    254254{ 
    255   // swap bits of the color 
    256   glColor3ub(id&255, (id>>8)&255, (id>>16)&255); 
     255        // swap bits of the color 
     256        glColor3ub(id&255, (id>>8)&255, (id>>16)&255); 
    257257} 
    258258 
     
    276276 
    277277  if (!mUseFalseColors && !mUseForcedColors) 
    278         SetupMaterial(mesh->mMaterial); 
     278          SetupMaterial(mesh->mMaterial); 
    279279   
    280280  for (i=0; i < mesh->mFaces.size(); i++) { 
  • GTP/trunk/Lib/Vis/Preprocessing/src/GlRenderer.h

    r1940 r1944  
    178178          Vector3 mDirection; 
    179179  }; 
    180  
     180friend class GlobalLinesRenderer; 
    181181protected: 
    182182 
Note: See TracChangeset for help on using the changeset viewer.