Documentation Archive Developer
Search

GLKit Changes for Objective-C

GLKit

GLKBaseEffect.h

Declaration
From
@property(nonatomic, copy) NSArray *textureOrder
To
@property(nonatomic, copy, nullable) NSArray<GLKEffectPropertyTexture *> *textureOrder

GLKModel.h (Added)

GLKTextureLoader.h

Declaration
From
+ (GLKTextureInfo *)cubeMapWithContentsOfFile:(NSString *)path options:(NSDictionary *)options error:(NSError **)outError
To
+ (GLKTextureInfo * _Nullable)cubeMapWithContentsOfFile:(NSString * _Nonnull)path options:(NSDictionary<NSString *,NSNumber *> * _Nullable)options error:(NSError * _Nullable * _Nullable)outError

Declaration
From
- (void)cubeMapWithContentsOfFile:(NSString *)path options:(NSDictionary *)options queue:(dispatch_queue_t)queue completionHandler:(GLKTextureLoaderCallback)block
To
- (void)cubeMapWithContentsOfFile:(NSString * _Nonnull)path options:(NSDictionary<NSString *,NSNumber *> * _Nullable)options queue:(dispatch_queue_t _Nullable)queue completionHandler:(GLKTextureLoaderCallback _Nonnull)block

Declaration
From
+ (GLKTextureInfo *)cubeMapWithContentsOfFiles:(NSArray *)paths options:(NSDictionary *)options error:(NSError **)outError
To
+ (GLKTextureInfo * _Nullable)cubeMapWithContentsOfFiles:(NSArray<id> * _Nonnull)paths options:(NSDictionary<NSString *,NSNumber *> * _Nullable)options error:(NSError * _Nullable * _Nullable)outError

Declaration
From
- (void)cubeMapWithContentsOfFiles:(NSArray *)paths options:(NSDictionary *)options queue:(dispatch_queue_t)queue completionHandler:(GLKTextureLoaderCallback)block
To
- (void)cubeMapWithContentsOfFiles:(NSArray<id> * _Nonnull)paths options:(NSDictionary<NSString *,NSNumber *> * _Nullable)options queue:(dispatch_queue_t _Nullable)queue completionHandler:(GLKTextureLoaderCallback _Nonnull)block

Declaration
From
+ (GLKTextureInfo *)cubeMapWithContentsOfURL:(NSURL *)url options:(NSDictionary *)options error:(NSError **)outError
To
+ (GLKTextureInfo * _Nullable)cubeMapWithContentsOfURL:(NSURL * _Nonnull)url options:(NSDictionary<NSString *,NSNumber *> * _Nullable)options error:(NSError * _Nullable * _Nullable)outError

Declaration
From
- (void)cubeMapWithContentsOfURL:(NSURL *)url options:(NSDictionary *)options queue:(dispatch_queue_t)queue completionHandler:(GLKTextureLoaderCallback)block
To
- (void)cubeMapWithContentsOfURL:(NSURL * _Nonnull)url options:(NSDictionary<NSString *,NSNumber *> * _Nullable)options queue:(dispatch_queue_t _Nullable)queue completionHandler:(GLKTextureLoaderCallback _Nonnull)block

Declaration
From
+ (GLKTextureInfo *)textureWithCGImage:(CGImageRef)cgImage options:(NSDictionary *)options error:(NSError **)outError
To
+ (GLKTextureInfo * _Nullable)textureWithCGImage:(CGImageRef _Nonnull)cgImage options:(NSDictionary<NSString *,NSNumber *> * _Nullable)options error:(NSError * _Nullable * _Nullable)outError

Declaration
From
- (void)textureWithCGImage:(CGImageRef)cgImage options:(NSDictionary *)options queue:(dispatch_queue_t)queue completionHandler:(GLKTextureLoaderCallback)block
To
- (void)textureWithCGImage:(CGImageRef _Nonnull)cgImage options:(NSDictionary<NSString *,NSNumber *> * _Nullable)options queue:(dispatch_queue_t _Nullable)queue completionHandler:(GLKTextureLoaderCallback _Nonnull)block

Declaration
From
+ (GLKTextureInfo *)textureWithContentsOfData:(NSData *)data options:(NSDictionary *)options error:(NSError **)outError
To
+ (GLKTextureInfo * _Nullable)textureWithContentsOfData:(NSData * _Nonnull)data options:(NSDictionary<NSString *,NSNumber *> * _Nullable)options error:(NSError * _Nullable * _Nullable)outError

Declaration
From
- (void)textureWithContentsOfData:(NSData *)data options:(NSDictionary *)options queue:(dispatch_queue_t)queue completionHandler:(GLKTextureLoaderCallback)block
To
- (void)textureWithContentsOfData:(NSData * _Nonnull)data options:(NSDictionary<NSString *,NSNumber *> * _Nullable)options queue:(dispatch_queue_t _Nullable)queue completionHandler:(GLKTextureLoaderCallback _Nonnull)block

Declaration
From
+ (GLKTextureInfo *)textureWithContentsOfFile:(NSString *)path options:(NSDictionary *)options error:(NSError **)outError
To
+ (GLKTextureInfo * _Nullable)textureWithContentsOfFile:(NSString * _Nonnull)path options:(NSDictionary<NSString *,NSNumber *> * _Nullable)options error:(NSError * _Nullable * _Nullable)outError

Declaration
From
- (void)textureWithContentsOfFile:(NSString *)path options:(NSDictionary *)options queue:(dispatch_queue_t)queue completionHandler:(GLKTextureLoaderCallback)block
To
- (void)textureWithContentsOfFile:(NSString * _Nonnull)path options:(NSDictionary<NSString *,NSNumber *> * _Nullable)options queue:(dispatch_queue_t _Nullable)queue completionHandler:(GLKTextureLoaderCallback _Nonnull)block

Declaration
From
+ (GLKTextureInfo *)textureWithContentsOfURL:(NSURL *)url options:(NSDictionary *)options error:(NSError **)outError
To
+ (GLKTextureInfo * _Nullable)textureWithContentsOfURL:(NSURL * _Nonnull)url options:(NSDictionary<NSString *,NSNumber *> * _Nullable)options error:(NSError * _Nullable * _Nullable)outError

Declaration
From
- (void)textureWithContentsOfURL:(NSURL *)url options:(NSDictionary *)options queue:(dispatch_queue_t)queue completionHandler:(GLKTextureLoaderCallback)block
To
- (void)textureWithContentsOfURL:(NSURL * _Nonnull)url options:(NSDictionary<NSString *,NSNumber *> * _Nullable)options queue:(dispatch_queue_t _Nullable)queue completionHandler:(GLKTextureLoaderCallback _Nonnull)block