Draw a textured rotated rectangle with the given position and dimensions and angle on the screen, using the current active texture.
See also surface.DrawTexturedRectUV and surface.DrawTexturedRect.
This means that it will only work in 2d Rendering Hooks.
A function that allows you to override the origin of rotation.
x0 and y0 are relative to the center of the rectangle.
Draws a simple red forever rotating box.