| 17 | Primitives::~Primitives() {} |
| 18 | |
| 19 | void 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 | |
| 32 | void Primitives::drawLine( const Line2f& line ) { |
| 33 | auto sBR = GlobalBatchRenderer::instance(); |