Renderer.copyEx

Acts as SDL_RenderCopyEx(renderer, texture, srcRect, destRect, angle, NULL, 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

srcRect Rect

source dsdl2.Rect which clips the given texture

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