7 glPushAttrib(GL_ENABLE_BIT | GL_POLYGON_BIT | GL_POINT_BIT);
8 glEnable(GL_POINT_SMOOTH);
9 glDisable(GL_LIGHTING);
11 TEveChunkManager::iterator qi(fM->GetPlex());
12 if (rnrCtx.Highlight() && fHighlightSet)
13 qi.fSelection = fHighlightSet;
15 if (rnrCtx.SecSelection()) glPushName(0);
19 TEveQuadSet::QFreeQuad_t*
q = (TEveQuadSet::QFreeQuad_t*) qi();
22 TGLUtil::ColorAlpha(Color_t(q->fValue));
23 if (rnrCtx.SecSelection()) glLoadName(qi.index());
24 float*
p = &q->fVertices[0];
26 float c[3] = {0.5f*(p[0]+p[6]), 0.5
f*(p[1]+p[7]), 0.5f*(p[2]+p[8])};
28 float d = p[6] - p[0];
29 glVertex3f( c[0] -d, c[1], c[2]); glVertex3f(c[0] + d, c[1], c[2]);
30 glVertex3f( c[0] , c[1] -d, c[2]); glVertex3f(c[0] , c[1] +d, c[2]);
31 glVertex3f( c[0] , c[1], c[2]-d); glVertex3f(c[0] , c[1], c[2] +d);