void ccOctree::drawMeOnly(CC_DRAW_CONTEXT& context) { if (m_thePointsAndTheirCellCodes.empty()) return; if (MACRO_Draw3D(context)) { bool pushName = MACRO_DrawEntityNames(context); if (pushName) { //not fast at all! if (MACRO_DrawFastNamesOnly(context)) return; glPushName(getUniqueIDForDisplay()); } assert(m_displayedLevel < 256); RenderOctreeAs(m_displayType,this,static_cast<uchar>(m_displayedLevel),m_theAssociatedCloudAsGPC,m_glListID,m_shouldBeRefreshed); if (m_shouldBeRefreshed) m_shouldBeRefreshed = false; if (pushName) glPopName(); } }
void ccOctree::drawMeOnly(CC_DRAW_CONTEXT& context) { if (m_thePointsAndTheirCellCodes.empty()) return; if (MACRO_Draw3D(context)) { bool pushName = MACRO_DrawEntityNames(context); if (pushName) glPushName(getUniqueID()); RenderOctreeAs(displayType,this,displayedLevel,_associatedCloud,glID,shouldBeRefreshed); if (shouldBeRefreshed) shouldBeRefreshed = false; if (pushName) glPopName(); } }