| 614 | } |
| 615 | |
| 616 | void BatchRenderer::rotate( const Vector2f& center, Vector2f* point, const Float& angle ) { |
| 617 | if ( angle ) { |
| 618 | Float x = point->x - center.x; |
| 619 | Float y = point->y - center.y; |
| 620 | point->x = x * Math::cosAng( angle ) - y * Math::sinAng( angle ) + center.x; |
| 621 | point->y = x * Math::sinAng( angle ) + y * Math::cosAng( angle ) + center.y; |
| 622 | } |
| 623 | } |
| 624 | |
| 625 | void BatchRenderer::pointsBegin() { |
| 626 | setDrawMode( PRIMITIVE_POINTS, true ); |
no test coverage detected