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

Method batchLineLoop

src/eepp/graphics/batchrenderer.cpp:718–738  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

716}
717
718void 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
740void BatchRenderer::batchLineLoop( const Vector2f& vector1, const Vector2f& vector2 ) {
741 batchLineLoop( vector1.x, vector1.y, vector2.x, vector2.y );

Callers 8

drawBorderMethod · 0.80
drawRectangleMethod · 0.80
drawTriangleMethod · 0.80
drawRectangleMethod · 0.80
drawRoundedRectangleMethod · 0.80
drawQuadMethod · 0.80
drawPolygonMethod · 0.80
screen3Method · 0.80

Calls

no outgoing calls

Tested by 1

screen3Method · 0.64