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

Method batchLineStrip

src/eepp/graphics/batchrenderer.cpp:777–797  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

775}
776
777void BatchRenderer::batchLineStrip( const Float& x0, const Float& y0, const Float& x1,
778 const Float& y1 ) {
779 if ( mNumVertex + 1 >= mVertexSize )
780 return;
781
782 setDrawMode( PRIMITIVE_LINE_STRIP, mForceBlendMode );
783
784 mTVertex = &mVertex[mNumVertex];
785 mTVertex->pos.x = x0;
786 mTVertex->pos.y = y0;
787 mTVertex->tex = mTexCoord[0];
788 mTVertex->color = mVerColor[0];
789
790 mTVertex = &mVertex[mNumVertex + 1];
791 mTVertex->pos.x = x1;
792 mTVertex->pos.y = y1;
793 mTVertex->tex = mTexCoord[1];
794 mTVertex->color = mVerColor[1];
795
796 addVertices( 2 );
797}
798
799void BatchRenderer::batchLineStrip( const Vector2f& vector1, const Vector2f& vector2 ) {
800 batchLineStrip( vector1.x, vector1.y, vector2.x, vector2.y );

Callers 2

drawArcMethod · 0.80
drawMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected