| 642 | } |
| 643 | |
| 644 | void OglRenderer::renderEllipse(double x, double y, double angle, double width, double height, |
| 645 | colorObj *color, colorObj *outlinecolor, double outlinewidth = 1.0) |
| 646 | { |
| 647 | makeCurrent(); |
| 648 | if (outlinecolor && MS_VALID_COLOR(*outlinecolor)) |
| 649 | { |
| 650 | glEnable(GL_DEPTH_TEST); |
| 651 | glPushMatrix(); |
| 652 | glTranslated(0, 0, 1); |
| 653 | } |
| 654 | |
| 655 | setColor(color); |
| 656 | |
| 657 | glPushMatrix(); |
| 658 | if (angle) |
| 659 | { |
| 660 | glRotated(angle, 0, 0, 1); |
| 661 | } |
| 662 | glTranslated(x, y, 0); |
| 663 | glScaled(width / SHAPE_CIRCLE_RADIUS / 2, height / SHAPE_CIRCLE_RADIUS / 2, 1); |
| 664 | glCallList(shapes[circle]); |
| 665 | glPopMatrix(); |
| 666 | |
| 667 | if (outlinecolor != NULL && MS_VALID_COLOR(*outlinecolor)) |
| 668 | { |
| 669 | glPopMatrix(); |
| 670 | glPushMatrix(); |
| 671 | glTranslated(0, 0, -1); |
| 672 | renderEllipse(x, y, angle, width + outlinewidth, height, outlinecolor, NULL, 0); |
| 673 | glPopMatrix(); |
| 674 | glDisable(GL_DEPTH_TEST); |
| 675 | } |
| 676 | |
| 677 | } |
| 678 | |
| 679 | bool OglRenderer::loadLine(shapeObj* shape, double width, int patternlength, |
| 680 | double* pattern) |
no outgoing calls
no test coverage detected