| 775 | } |
| 776 | |
| 777 | void BatchRenderer::batchLineStrip( const Float& x0, const Float& y0, const Float& x1, |
| 778 | const Float& y1 ) { |
| 779 | if ( mNumVertex + 1 >= mVertexSize ) |
| 780 | return; |
| 781 | |
| 782 | setDrawMode( PRIMITIVE_LINE_STRIP, mForceBlendMode ); |
| 783 | |
| 784 | mTVertex = &mVertex[mNumVertex]; |
| 785 | mTVertex->pos.x = x0; |
| 786 | mTVertex->pos.y = y0; |
| 787 | mTVertex->tex = mTexCoord[0]; |
| 788 | mTVertex->color = mVerColor[0]; |
| 789 | |
| 790 | mTVertex = &mVertex[mNumVertex + 1]; |
| 791 | mTVertex->pos.x = x1; |
| 792 | mTVertex->pos.y = y1; |
| 793 | mTVertex->tex = mTexCoord[1]; |
| 794 | mTVertex->color = mVerColor[1]; |
| 795 | |
| 796 | addVertices( 2 ); |
| 797 | } |
| 798 | |
| 799 | void BatchRenderer::batchLineStrip( const Vector2f& vector1, const Vector2f& vector2 ) { |
| 800 | batchLineStrip( vector1.x, vector1.y, vector2.x, vector2.y ); |