我正在尝试初始化IOSurface,并且获得对所有属性的未定义引用。
NSDictionary* dict = @{
IOSurfacePropertyKeyWidth: [NSNumber numberWithInt:textureWidth],
IOSurfacePropertyKeyHeight: [NSNumber numberWithInt:textureHeight],
IOSurfacePropertyKeyBytesPerElement: [NSNumber numberWithInt:4],
IOSurfacePropertyKeyPixelFormat: [NSNumber numberWithInt:'BGRA'],
(NSString*)kIOSurfaceIsGlobal: [NSNumber numberWithBool:YES]
};
IOSurfaceRef surface = IOSurfaceCreate((CFDictionaryRef)dict);
答案 0 :(得分:-1)
我必须在xcode中包含iosframework。