static const float radius = 0.6;
static const float umax = 0.42;
static const float max_icon_angle = M_PI * 2.0 * umax;
+ static const float first_row_y = -row_spacing;
int max_ncols = std::max<int>(1, umax * 12);
Mat4 xform;
xform.rotate_y(angle);
- xform.translate(0, -0.3, 0);
+ xform.translate(0, -0.6, 0);
glPushMatrix();
glMultMatrixf(xform[0]);
glTexCoord2f(1, 0);
glVertex3f(0.2, 0, 0.05);
glTexCoord2f(1, 1);
- glVertex3f(0.2, 0, -5.0);
+ glVertex3f(0.2, 0, -10.0);
glTexCoord2f(0, 1);
- glVertex3f(-0.2, 0, -5.0);
+ glVertex3f(-0.2, 0, -10.0);
glColor3f(1, 1, 1);
glEnd();
glPopMatrix();
float angle = (float)col++ / (float)(num_dirs - 1) * max_icon_angle - max_icon_angle * 0.5;
- draw_node_name(node, angle, -0.3, radius, false);
+ draw_node_name(node, angle, -0.6, radius * 1.2, false);
}
// then draw file icons
glDisable(GL_BLEND);
glUseProgram(0);
+ glLineWidth(2.0);
col = 0;
for(int i=0; i<nchildren; i++) {
int idx = (i + first) % nchildren;
float angle = icon_angle(col, ncols, max_icon_angle);
Mat4 xform = rot_xform;
- xform.translate(0, row * row_spacing, -radius);
+ xform.translate(0, row * row_spacing + first_row_y, -radius);
xform.rotate_y(angle);
glPushMatrix();
++row;
}
}
+ glLineWidth(1.0);
// then draw the file labels
glUseProgram(chrome_font_sdr);
float angle = icon_angle(col, ncols, max_icon_angle);
- draw_node_name(node, angle, row * row_spacing - 0.1, radius, false);
+ draw_node_name(node, angle, row * row_spacing + first_row_y - 0.08, radius, false);
if(++col >= ncols) {
col = 0;
const char *name = full ? node->name_lines[i].c_str() : node->short_name.c_str();
glPushMatrix();
Mat4 xform;
- xform.translate(-dtx_string_width(name) / 2.0, -line_height * i, 0);
+ xform.translate(-dtx_string_width(name) / 2.0, -line_height * i - line_height * 0.5, 0);
if(node->type == FSTYPE_DIR) {
xform.rotate_z(deg_to_rad(90));
xform.rotate_x(deg_to_rad(-90));
- xform.scale(0.0017);
+ xform.scale(0.0018);
} else {
xform.scale(0.0012);
}