Hi,
GLKTextureLoader thrown an Error „Extra argument in call“, but I cannot see whats wrong.
var opt:[String : NSNumber] = [GLKTextureLoaderOriginBottomLeft : NSNumber(bool: false), GLKTextureLoaderApplyPremultiplication : NSNumber(bool: false)]
let pic = UIImage(named: "Car.png")
let tex:GLKTextureInfo?
do {
try tex = GLKTextureLoader.textureWithCGImage(pic, options: opt) // ERROR: Extra argument 'options' in call
} catch {
tex = nil
}
//var tex = GLKTextureLoader.textureWithCGImage(cgImage: CGImage, options: [String : NSNumber]?)
tex = GLKTextureLoader.textureWithCGImage(cgImage: pic, options: opt) // ERROR: Extra argument 'options' in call
tex = GLKTextureLoader.textureWithCGImage(pic, options: nil) // ERROR: Extra argument 'options' in call
tex = GLKTextureLoader.textureWithCGImage(pic, nil) // ERROR: Extra argument in callCan someone please tell me what I’m doing wrong here ?