Renderer.copyEx

Acts as SDL_RenderCopyEx(renderer, texture, NULL, destRect, angle, center, flip) which copies the entire texture to destRect at the renderer's target with certain angle and flipping

Parameters

texture Texture

dsdl2.Texture to be copied/drawn

destRect Rect

destination dsdl2.Rect in the target for the texture to be drawn to

angle double

angle in degrees to rotate the texture counterclockwise

center Point

pivot dsdl2.Point of the texture for rotation

flippedHorizontally bool

true to flip the texture horizontally, otherwise false

flippedVertically bool

true to flip the texture vertically, otherwise false

Throws

dsdl2.SDLException if texture failed to draw

Meta