How can i rotate a triangle drawn in c with sdl_gfx with :
(i want to do an animation where the triangle rotates itself) The only function i’ve found to rotate stuff is in
SDL::GFX::Rotozoom::surface( $surface, $angle, $zoom, $smooth );
But this function takes a surface… I’m new with this library and I’m not sure how to solve something this simple. Is this possible or I need to draw the triangle each time with different coordinates?if this is the case, it’s insanely long and complicated.