Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_icons.c
| Context not available. | |||||
| viconutil_set_point(pts[1], cx - d2, cy - d); | viconutil_set_point(pts[1], cx - d2, cy - d); | ||||
| viconutil_set_point(pts[2], cx + d2, cy); | viconutil_set_point(pts[2], cx + d2, cy); | ||||
| glShadeModel(GL_SMOOTH); | |||||
| glBegin(GL_TRIANGLES); | glBegin(GL_TRIANGLES); | ||||
| glColor4f(0.8f, 0.8f, 0.8f, alpha); | glColor4f(0.8f, 0.8f, 0.8f, alpha); | ||||
| glVertex2iv(pts[0]); | glVertex2iv(pts[0]); | ||||
| Context not available. | |||||
| glColor4f(0.3f, 0.3f, 0.3f, alpha); | glColor4f(0.3f, 0.3f, 0.3f, alpha); | ||||
| glVertex2iv(pts[2]); | glVertex2iv(pts[2]); | ||||
| glEnd(); | glEnd(); | ||||
| glShadeModel(GL_FLAT); | |||||
| glColor4f(0.0f, 0.0f, 0.0f, 1); | glColor4f(0.0f, 0.0f, 0.0f, 1); | ||||
| viconutil_draw_lineloop_smooth(pts, 3); | viconutil_draw_lineloop_smooth(pts, 3); | ||||
| Context not available. | |||||
| glColor4f(0.2f, 0.2f, 0.2f, alpha); | glColor4f(0.2f, 0.2f, 0.2f, alpha); | ||||
| glShadeModel(GL_SMOOTH); | |||||
| glBegin(GL_TRIANGLES); | glBegin(GL_TRIANGLES); | ||||
| glVertex2iv(pts[0]); | glVertex2iv(pts[0]); | ||||
| glVertex2iv(pts[1]); | glVertex2iv(pts[1]); | ||||
| glVertex2iv(pts[2]); | glVertex2iv(pts[2]); | ||||
| glEnd(); | glEnd(); | ||||
| glShadeModel(GL_FLAT); | |||||
| } | } | ||||
| static void vicon_disclosure_tri_down_draw(int x, int y, int w, int UNUSED(h), float alpha) | static void vicon_disclosure_tri_down_draw(int x, int y, int w, int UNUSED(h), float alpha) | ||||
| Context not available. | |||||
| viconutil_set_point(pts[1], cx - d, cy + d2); | viconutil_set_point(pts[1], cx - d, cy + d2); | ||||
| viconutil_set_point(pts[2], cx, cy - d2); | viconutil_set_point(pts[2], cx, cy - d2); | ||||
| glShadeModel(GL_SMOOTH); | |||||
| glBegin(GL_TRIANGLES); | glBegin(GL_TRIANGLES); | ||||
| glColor4f(0.8f, 0.8f, 0.8f, alpha); | glColor4f(0.8f, 0.8f, 0.8f, alpha); | ||||
| glVertex2iv(pts[0]); | glVertex2iv(pts[0]); | ||||
| Context not available. | |||||
| glColor4f(0.3f, 0.3f, 0.3f, alpha); | glColor4f(0.3f, 0.3f, 0.3f, alpha); | ||||
| glVertex2iv(pts[2]); | glVertex2iv(pts[2]); | ||||
| glEnd(); | glEnd(); | ||||
| glShadeModel(GL_FLAT); | |||||
| glColor4f(0.0f, 0.0f, 0.0f, 1); | glColor4f(0.0f, 0.0f, 0.0f, 1); | ||||
| viconutil_draw_lineloop_smooth(pts, 3); | viconutil_draw_lineloop_smooth(pts, 3); | ||||
| Context not available. | |||||