MCPcopy Create free account
hub / github.com/SpartanJ/eepp / batchTriangleFan

Method batchTriangleFan

src/eepp/graphics/batchrenderer.cpp:847–874  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

845}
846
847void 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
876void BatchRenderer::batchTriangleFan( const Float& x0, const Float& y0 ) {
877 if ( mNumVertex + 1 >= mVertexSize )

Callers 1

drawArcMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected