| 680 | } |
| 681 | |
| 682 | void BatchRenderer::batchLine( const Float& x0, const Float& y0, const Float& x1, |
| 683 | const Float& y1 ) { |
| 684 | if ( mNumVertex + 1 >= mVertexSize ) |
| 685 | return; |
| 686 | |
| 687 | setDrawMode( PRIMITIVE_LINES, mForceBlendMode ); |
| 688 | |
| 689 | mTVertex = &mVertex[mNumVertex]; |
| 690 | mTVertex->pos.x = x0; |
| 691 | mTVertex->pos.y = y0; |
| 692 | mTVertex->tex = mTexCoord[0]; |
| 693 | mTVertex->color = mVerColor[0]; |
| 694 | |
| 695 | mTVertex = &mVertex[mNumVertex + 1]; |
| 696 | mTVertex->pos.x = x1; |
| 697 | mTVertex->pos.y = y1; |
| 698 | mTVertex->tex = mTexCoord[1]; |
| 699 | mTVertex->color = mVerColor[1]; |
| 700 | |
| 701 | addVertices( 2 ); |
| 702 | } |
| 703 | |
| 704 | void BatchRenderer::lineLoopBegin() { |
| 705 | setDrawMode( PRIMITIVE_LINE_LOOP, true ); |