import CSDL3 import CSDL3_Image public class Surface { var handle: UnsafeMutablePointer public init(from imagePath: String) throws { handle = try IMG_Load(imagePath).sdlThrow(type: type(of: self)) } deinit { SDL_DestroySurface(handle) } }