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

Method batchLine

src/eepp/graphics/batchrenderer.cpp:682–702  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

680}
681
682void 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
704void BatchRenderer::lineLoopBegin() {
705 setDrawMode( PRIMITIVE_LINE_LOOP, true );

Callers 4

drawMethod · 0.80
drawMethod · 0.80
drawMethod · 0.80
drawLineMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected