I have drawn a ship using three lines, and would like to rotate the ship around its axis in opengl, I have tried the following, but the ship translates while rotation!.
void Ship::Draw( )
{
gl::pushMatrices();
gl::translate(Vec2f(-m_Pos.x, -m_Pos.y));
gl::rotate(m_Angle);
gl::translate(Vec2f(m_Pos.x,m_Pos.y));
gl::color(ci::Color(1,0,0));
gl::drawLine(Vec2f(281,70),Vec2f(383,123));
gl::drawLine(Vec2f(310,85),Vec2f(310,160));
gl::drawLine(Vec2f(383,123),Vec2f(281,176));
gl::popMatrices();
m_Angle+=0.2f;
}