You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pubfncopy(ren: Renderer, tex: Texture, dstRect: ?Rectangle, srcRect: ?Rectangle) !void {
if (c.SDL_RenderCopy(ren.ptr, tex.ptr, if (srcRect) |r|r.getConstSdlPtr() elsenull, if (dstRect) |r|r.getConstSdlPtr() elsenull) <0)
returnmakeError();
}
pubfncopyF(ren: Renderer, tex: Texture, dstRect: ?RectangleF, srcRect: ?Rectangle) !void {
if (c.SDL_RenderCopyF(ren.ptr, tex.ptr, if (srcRect) |r|r.getConstSdlPtr() elsenull, if (dstRect) |r|r.getConstSdlPtr() elsenull) <0)
returnmakeError();
}
Seems like an odd change from the source which could be hard to debug if converting from native to wrapper bindings. Though similarly hard to debug if flipped back to match SDL2
The text was updated successfully, but these errors were encountered:
Seems like an odd change from the source which could be hard to debug if converting from native to wrapper bindings. Though similarly hard to debug if flipped back to match SDL2
The text was updated successfully, but these errors were encountered: