| 30 | } |
| 31 | |
| 32 | void 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 | |
| 45 | void Primitives::drawTriangle( const Triangle2f& t, const Color& Color1, const Color& Color2, |
| 46 | const Color& Color3 ) { |
no test coverage detected