Renderer.copyEx

Acts as SDL_RenderCopyExF(renderer, texture, NULL, destRect, angle, center, flip) (from SDL 2.0.10) 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 FRect

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

angle double

angle in degrees to rotate the texture counterclockwise

center FPoint

pivot dsdl2.FPoint 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