import CSDL3 public class Window { let handle: OpaquePointer public init(_ title: String, width: Int, height: Int, shown: Bool) throws { handle = try SDL_CreateWindow( title, Int32(width), Int32(height), 0 // TODO - impl window flags ).sdlThrow(type: type(of: self)) } deinit { SDL_DestroyWindow(handle) } public var renderer: Renderer { get throws { try Renderer(self) } } }