| 845 | } |
| 846 | |
| 847 | void BatchRenderer::batchTriangleFan( const Float& x0, const Float& y0, const Float& x1, |
| 848 | const Float& y1, const Float& x2, const Float& y2 ) { |
| 849 | |
| 850 | if ( mNumVertex + 3 >= mVertexSize ) |
| 851 | return; |
| 852 | |
| 853 | setDrawMode( PRIMITIVE_TRIANGLE_FAN, mForceBlendMode ); |
| 854 | |
| 855 | mTVertex = &mVertex[mNumVertex]; |
| 856 | mTVertex->pos.x = x0; |
| 857 | mTVertex->pos.y = y0; |
| 858 | mTVertex->tex = mTexCoord[0]; |
| 859 | mTVertex->color = mVerColor[0]; |
| 860 | |
| 861 | mTVertex = &mVertex[mNumVertex + 1]; |
| 862 | mTVertex->pos.x = x1; |
| 863 | mTVertex->pos.y = y1; |
| 864 | mTVertex->tex = mTexCoord[1]; |
| 865 | mTVertex->color = mVerColor[1]; |
| 866 | |
| 867 | mTVertex = &mVertex[mNumVertex + 2]; |
| 868 | mTVertex->pos.x = x2; |
| 869 | mTVertex->pos.y = y2; |
| 870 | mTVertex->tex = mTexCoord[2]; |
| 871 | mTVertex->color = mVerColor[2]; |
| 872 | |
| 873 | addVertices( 3 ); |
| 874 | } |
| 875 | |
| 876 | void BatchRenderer::batchTriangleFan( const Float& x0, const Float& y0 ) { |
| 877 | if ( mNumVertex + 1 >= mVertexSize ) |