We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c57075b commit b78bfa6Copy full SHA for b78bfa6
Sources/SDL/Renderer.swift
@@ -76,6 +76,12 @@ public final class SDLRenderer {
76
try SDL_SetRenderDrawBlendMode(internalPointer, SDL_BlendMode(newValue.rawValue)).sdlThrow(type: type(of: self))
77
}
78
79
+ /// Set a device independent resolution for rendering
80
+ public func setLogicalSize(width: Int32, height: Int32) throws {
81
+
82
+ try SDL_RenderSetLogicalSize(internalPointer, width, height).sdlThrow(type: type(of: self))
83
+ }
84
85
// MARK: - Methods
86
87
/// Clear the current rendering target with the drawing color
0 commit comments