15 lines
310 B
Swift
15 lines
310 B
Swift
//import CSDL2
|
|
//import CSDL2_Image
|
|
|
|
//public class Surface {
|
|
// var handle: UnsafeMutablePointer<SDL_Surface>
|
|
|
|
// public init(from imagePath: String) throws {
|
|
// handle = try IMG_Load(imagePath).sdlThrow(type: type(of: self))
|
|
// }
|
|
|
|
// deinit {
|
|
// SDL_FreeSurface(handle)
|
|
// }
|
|
//}
|