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

Method drawLine

src/eepp/graphics/primitives.cpp:32–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32void Primitives::drawLine( const Line2f& line ) {
33 auto sBR = GlobalBatchRenderer::instance();
34 sBR->setLineWidth( mLineWidth );
35
36 sBR->setTexture( NULL );
37 sBR->linesBegin();
38 sBR->linesSetColor( mColor );
39
40 sBR->batchLine( line.V[0].x, line.V[0].y, line.V[1].x, line.V[1].y );
41
42 drawBatch();
43}
44
45void Primitives::drawTriangle( const Triangle2f& t, const Color& Color1, const Color& Color2,
46 const Color& Color3 ) {

Callers 4

drawMethod · 0.45
drawLineNumbersMethod · 0.45
drawMethod · 0.45
mainFunction · 0.45

Calls 5

linesBeginMethod · 0.80
linesSetColorMethod · 0.80
batchLineMethod · 0.80
setLineWidthMethod · 0.45
setTextureMethod · 0.45

Tested by

no test coverage detected