rendered paste bodystatic void outliner_draw_tree(SpaceOops *soops)
{
TreeElement *te;
int starty, startx;
float col[4];
ID *id= idv;
Lamp *la;
// la= ob->data;
#ifdef INTERNATIONAL
FTF_SetFontSize('l');
BIF_SetScale(1.0);
#endif
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); // only once
// selection first
BIF_GetThemeColor3fv(TH_BACK, col);
glColor3f(col[0]+0.06f, col[1]+0.08f, col[2]+0.10f);
starty= soops->v2d.tot.ymax-OL_H;
outliner_draw_selection(soops, &soops->tree, &starty);
// grey hierarchy lines
// BIF_ThemeColorBlend(TH_BACK, TH_TEXT, 0.2);
if (la->mode & LA_DRAW_COLOR) {
glColor3f(la->r, la->g, la->b);
}
starty= soops->v2d.tot.ymax-OL_H/2;
startx= 6;
outliner_draw_hierarchy(soops, &soops->tree, startx, &starty);
// items themselves
starty= soops->v2d.tot.ymax-OL_H;
startx= 0;
for(te= soops->tree.first; te; te= te->next) {
outliner_draw_tree_element(soops, te, startx, &starty);
}
}