------------------------------------------------------------- Description: Adds a straight line to the line set, but does not submit it Arguments: startPosition - The start position of the line nstartColor - The color of the line at start position endPosition - The end position of the line endColor - The color of the line at end position width - The width of the line in pixels Return value: The li
| 721 | // The line's id |
| 722 | // ------------------------------------------------------------- |
| 723 | unsigned int Tr2CurveLineSet::AddStraightLine( const Vector3& position1, const Vector4& color1, const Vector3& position2, const Vector4& color2, float width ) |
| 724 | { |
| 725 | LineData newLine; |
| 726 | |
| 727 | newLine.type = LINETYPE_STRAIGHT; |
| 728 | newLine.position1 = position1; |
| 729 | newLine.color1 = color1; |
| 730 | newLine.position2 = position2; |
| 731 | newLine.color2 = color2; |
| 732 | newLine.intermediatePosition = Vector3( 0.f, 0.f, 0.f ); |
| 733 | newLine.width = width; |
| 734 | newLine.multiColor = Color( 0.f, 0.f, 0.f, 0.f ); |
| 735 | newLine.multiColorBorder = -1.f; |
| 736 | newLine.overlayColor = Color( 0.f, 0.f, 0.f, 0.f ); |
| 737 | newLine.animationSpeed = 0.f; |
| 738 | newLine.animationScale = 1.f; |
| 739 | newLine.numOfSegments = 1; |
| 740 | |
| 741 | // use helper function to put this line in list |
| 742 | return addLineData( &newLine ); |
| 743 | } |
| 744 | |
| 745 | // ------------------------------------------------------------- |
| 746 | // Description: |