void RDirNode::drawSimple(Frustum& frustum, float dt) { glDisable(GL_TEXTURE_2D); if(frustum.boundsInFrustum(quadItemBounds)) { glPushMatrix(); glTranslatef(pos.x, pos.y, 0.0); for(std::list<RFile*>::iterator it = files.begin(); it!=files.end(); it++) { RFile* f = *it; f->drawSimple(dt); } glPopMatrix(); } for(std::list<RDirNode*>::iterator it = children.begin(); it != children.end(); it++) { RDirNode* node = (*it); node->drawSimple(frustum,dt); } if(gGourceNodeDebug) { glColor4f(1.0, 1.0, 1.0, 1.0); vec2f vel_offset = pos + vel.normal() * 10.0; glBegin(GL_LINES); glVertex2fv(pos); glVertex2fv(vel_offset); glEnd(); glColor4f(1.0, 1.0, 0.0, 1.0); glLineWidth(1.0); quadItemBounds.draw(); } }