예제 #1
0
void QuadNode::outline() {
    bounds.draw();

    if(children.size()==0) return;

    for(int i=0;i<4;i++) {
        QuadNode* c = children[i];
        if(c!=0) {
            c->outline();
        }
    }
}
예제 #2
0
void QuadNode::outline() {
    //bounds.draw();

    if(!items.empty()) {
        bounds.draw();
        /*glBegin(GL_LINES);
            glVertex2fv(bounds.min);
            glVertex2fv(bounds.max);
        glEnd();*/
    }

    if(children.empty()) return;

    for(int i=0;i<4;i++) {
        QuadNode* c = children[i];
        if(c!=0) {
            c->outline();
        }
    }
}