void RDirNode::drawFiles(Frustum &frustum, float dt) { if(frustum.boundsInFrustum(quadItemBounds)) { vec4f col = getColour(); glPushMatrix(); glTranslatef(pos.x, pos.y, 0.0); //draw files for(std::list<RFile*>::iterator it = files.begin(); it!=files.end(); it++) { RFile* f = *it; if(f->isHidden()) continue; f->draw(dt); } glPopMatrix(); } glDisable(GL_TEXTURE_2D); for(std::list<RDirNode*>::iterator it = children.begin(); it != children.end(); it++) { RDirNode* node = (*it); node->drawFiles(frustum,dt); } }
void RDirNode::drawFiles(float dt) const{ if(in_frustum) { vec4f col = getColour(); glPushMatrix(); glTranslatef(pos.x, pos.y, 0.0); //draw files for(std::list<RFile*>::const_iterator it = files.begin(); it!=files.end(); it++) { RFile* f = *it; if(f->isHidden()) continue; f->draw(dt); } glPopMatrix(); } for(std::list<RDirNode*>::const_iterator it = children.begin(); it != children.end(); it++) { RDirNode* node = (*it); node->drawFiles(dt); } }