Slide 27
Slide 27 text
thara/SDL
public func copy(_ texture: SDLTexture,
_ s: inout SDL_Rect,
_ d: inout SDL_Rect) throws {
try SDL_RenderCopy(ptr, texture.ptr,
&s, &d).sdlThrow(type: type(of: self))
}
public func copy(_ texture: SDLTexture,
_ s: inout SDL_Rect) throws {
try SDL_RenderCopy(ptr, texture.ptr,
&s, nil).sdlThrow(type: type(of: self))
}
public func copy(_ texture: SDLTexture,
_ d: inout SDL_Rect) throws {
try SDL_RenderCopy(ptr, texture.ptr,
nil, &d).sdlThrow(type: type(of: self))
}