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

Method drawPoint

src/eepp/graphics/primitives.cpp:19–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17Primitives::~Primitives() {}
18
19void Primitives::drawPoint( const Vector2f& p, const Float& pointSize ) {
20 auto sBR = GlobalBatchRenderer::instance();
21 sBR->setPointSize( pointSize );
22
23 sBR->setTexture( NULL );
24 sBR->pointsBegin();
25 sBR->pointSetColor( mColor );
26
27 sBR->batchPoint( p.x, p.y );
28
29 drawBatch();
30}
31
32void Primitives::drawLine( const Line2f& line ) {
33 auto sBR = GlobalBatchRenderer::instance();

Callers 2

drawpointMethod · 0.80
screen2Method · 0.80

Calls 5

setPointSizeMethod · 0.80
pointsBeginMethod · 0.80
pointSetColorMethod · 0.80
batchPointMethod · 0.80
setTextureMethod · 0.45

Tested by 1

screen2Method · 0.64