| 716 | } |
| 717 | |
| 718 | void BatchRenderer::batchLineLoop( const Float& x0, const Float& y0, const Float& x1, |
| 719 | const Float& y1 ) { |
| 720 | if ( mNumVertex + 1 >= mVertexSize ) |
| 721 | return; |
| 722 | |
| 723 | setDrawMode( PRIMITIVE_LINE_LOOP, mForceBlendMode ); |
| 724 | |
| 725 | mTVertex = &mVertex[mNumVertex]; |
| 726 | mTVertex->pos.x = x0; |
| 727 | mTVertex->pos.y = y0; |
| 728 | mTVertex->tex = mTexCoord[0]; |
| 729 | mTVertex->color = mVerColor[0]; |
| 730 | |
| 731 | mTVertex = &mVertex[mNumVertex + 1]; |
| 732 | mTVertex->pos.x = x1; |
| 733 | mTVertex->pos.y = y1; |
| 734 | mTVertex->tex = mTexCoord[1]; |
| 735 | mTVertex->color = mVerColor[1]; |
| 736 | |
| 737 | addVertices( 2 ); |
| 738 | } |
| 739 | |
| 740 | void BatchRenderer::batchLineLoop( const Vector2f& vector1, const Vector2f& vector2 ) { |
| 741 | batchLineLoop( vector1.x, vector1.y, vector2.x, vector2.y ); |
no outgoing calls