Documentation Archive Developer
Search

GLKit Changes for Objective-C

GLKit

GLKBaseEffect.h

Declaration
From
@property(nonatomic, readonly) GLKEffectPropertyFog *fog
To
@property(nonatomic, readonly, nonnull) GLKEffectPropertyFog *fog

Declaration
From
@property(nonatomic, copy) NSString *label
To
@property(nonatomic, copy, nullable) NSString *label

Declaration
From
@property(nonatomic, readonly) GLKEffectPropertyLight *light0
To
@property(nonatomic, readonly, nonnull) GLKEffectPropertyLight *light0

Declaration
From
@property(nonatomic, readonly) GLKEffectPropertyLight *light1
To
@property(nonatomic, readonly, nonnull) GLKEffectPropertyLight *light1

Declaration
From
@property(nonatomic, readonly) GLKEffectPropertyLight *light2
To
@property(nonatomic, readonly, nonnull) GLKEffectPropertyLight *light2

Declaration
From
@property(nonatomic, readonly) GLKEffectPropertyMaterial *material
To
@property(nonatomic, readonly, nonnull) GLKEffectPropertyMaterial *material

Declaration
From
@property(nonatomic, readonly) GLKEffectPropertyTexture *texture2d0
To
@property(nonatomic, readonly, nonnull) GLKEffectPropertyTexture *texture2d0

Declaration
From
@property(nonatomic, readonly) GLKEffectPropertyTexture *texture2d1
To
@property(nonatomic, readonly, nonnull) GLKEffectPropertyTexture *texture2d1

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

Declaration
From
@property(nonatomic, readonly) GLKEffectPropertyTransform *transform
To
@property(nonatomic, readonly, nonnull) GLKEffectPropertyTransform *transform

GLKEffectPropertyLight.h

Declaration
From
@property(nonatomic, retain) GLKEffectPropertyTransform *transform
To
@property(nonatomic, retain, nonnull) GLKEffectPropertyTransform *transform

GLKMathUtils.h

Declaration
From
GLKVector3 GLKMathProject (
    GLKVector3 object,
    GLKMatrix4 model,
    GLKMatrix4 projection,
    int *viewport
);
To
GLKVector3 GLKMathProject (
    GLKVector3 object,
    GLKMatrix4 model,
    GLKMatrix4 projection,
    int * _Nonnull viewport
);

Declaration
From
GLKVector3 GLKMathUnproject (
    GLKVector3 window,
    GLKMatrix4 model,
    GLKMatrix4 projection,
    int *viewport,
    bool *success
);
To
GLKVector3 GLKMathUnproject (
    GLKVector3 window,
    GLKMatrix4 model,
    GLKMatrix4 projection,
    int * _Nonnull viewport,
    bool * _Nonnull success
);

Declaration
From
NSString * NSStringFromGLKMatrix2 (
    GLKMatrix2 matrix
);
To
NSString * _Nonnull NSStringFromGLKMatrix2 (
    GLKMatrix2 matrix
);

Declaration
From
NSString * NSStringFromGLKMatrix3 (
    GLKMatrix3 matrix
);
To
NSString * _Nonnull NSStringFromGLKMatrix3 (
    GLKMatrix3 matrix
);

Declaration
From
NSString * NSStringFromGLKMatrix4 (
    GLKMatrix4 matrix
);
To
NSString * _Nonnull NSStringFromGLKMatrix4 (
    GLKMatrix4 matrix
);

Declaration
From
NSString * NSStringFromGLKQuaternion (
    GLKQuaternion quaternion
);
To
NSString * _Nonnull NSStringFromGLKQuaternion (
    GLKQuaternion quaternion
);

Declaration
From
NSString * NSStringFromGLKVector2 (
    GLKVector2 vector
);
To
NSString * _Nonnull NSStringFromGLKVector2 (
    GLKVector2 vector
);

Declaration
From
NSString * NSStringFromGLKVector3 (
    GLKVector3 vector
);
To
NSString * _Nonnull NSStringFromGLKVector3 (
    GLKVector3 vector
);

Declaration
From
NSString * NSStringFromGLKVector4 (
    GLKVector4 vector
);
To
NSString * _Nonnull NSStringFromGLKVector4 (
    GLKVector4 vector
);

GLKMatrixStack.h

Declaration
From
GLKMatrixStackRef GLKMatrixStackCreate (
    CFAllocatorRef alloc
);
To
GLKMatrixStackRef _Nullable GLKMatrixStackCreate (
    CFAllocatorRef _Nullable alloc
);

Declaration
From
GLKMatrix2 GLKMatrixStackGetMatrix2 (
    GLKMatrixStackRef stack
);
To
GLKMatrix2 GLKMatrixStackGetMatrix2 (
    GLKMatrixStackRef _Nonnull stack
);

Declaration
From
GLKMatrix3 GLKMatrixStackGetMatrix3 (
    GLKMatrixStackRef stack
);
To
GLKMatrix3 GLKMatrixStackGetMatrix3 (
    GLKMatrixStackRef _Nonnull stack
);

Declaration
From
GLKMatrix3 GLKMatrixStackGetMatrix3Inverse (
    GLKMatrixStackRef stack
);
To
GLKMatrix3 GLKMatrixStackGetMatrix3Inverse (
    GLKMatrixStackRef _Nonnull stack
);

Declaration
From
GLKMatrix3 GLKMatrixStackGetMatrix3InverseTranspose (
    GLKMatrixStackRef stack
);
To
GLKMatrix3 GLKMatrixStackGetMatrix3InverseTranspose (
    GLKMatrixStackRef _Nonnull stack
);

Declaration
From
GLKMatrix4 GLKMatrixStackGetMatrix4 (
    GLKMatrixStackRef stack
);
To
GLKMatrix4 GLKMatrixStackGetMatrix4 (
    GLKMatrixStackRef _Nonnull stack
);

Declaration
From
GLKMatrix4 GLKMatrixStackGetMatrix4Inverse (
    GLKMatrixStackRef stack
);
To
GLKMatrix4 GLKMatrixStackGetMatrix4Inverse (
    GLKMatrixStackRef _Nonnull stack
);

Declaration
From
GLKMatrix4 GLKMatrixStackGetMatrix4InverseTranspose (
    GLKMatrixStackRef stack
);
To
GLKMatrix4 GLKMatrixStackGetMatrix4InverseTranspose (
    GLKMatrixStackRef _Nonnull stack
);

Declaration
From
void GLKMatrixStackLoadMatrix4 (
    GLKMatrixStackRef stack,
    GLKMatrix4 matrix
);
To
void GLKMatrixStackLoadMatrix4 (
    GLKMatrixStackRef _Nonnull stack,
    GLKMatrix4 matrix
);

Declaration
From
void GLKMatrixStackMultiplyMatrix4 (
    GLKMatrixStackRef stack,
    GLKMatrix4 matrix
);
To
void GLKMatrixStackMultiplyMatrix4 (
    GLKMatrixStackRef _Nonnull stack,
    GLKMatrix4 matrix
);

Declaration
From
void GLKMatrixStackMultiplyMatrixStack (
    GLKMatrixStackRef stackLeft,
    GLKMatrixStackRef stackRight
);
To
void GLKMatrixStackMultiplyMatrixStack (
    GLKMatrixStackRef _Nonnull stackLeft,
    GLKMatrixStackRef _Nonnull stackRight
);

Declaration
From
void GLKMatrixStackPop (
    GLKMatrixStackRef stack
);
To
void GLKMatrixStackPop (
    GLKMatrixStackRef _Nonnull stack
);

Declaration
From
void GLKMatrixStackPush (
    GLKMatrixStackRef stack
);
To
void GLKMatrixStackPush (
    GLKMatrixStackRef _Nonnull stack
);

Declaration
From
void GLKMatrixStackRotate (
    GLKMatrixStackRef stack,
    float radians,
    float x,
    float y,
    float z
);
To
void GLKMatrixStackRotate (
    GLKMatrixStackRef _Nonnull stack,
    float radians,
    float x,
    float y,
    float z
);

Declaration
From
void GLKMatrixStackRotateWithVector3 (
    GLKMatrixStackRef stack,
    float radians,
    GLKVector3 axisVector
);
To
void GLKMatrixStackRotateWithVector3 (
    GLKMatrixStackRef _Nonnull stack,
    float radians,
    GLKVector3 axisVector
);

Declaration
From
void GLKMatrixStackRotateWithVector4 (
    GLKMatrixStackRef stack,
    float radians,
    GLKVector4 axisVector
);
To
void GLKMatrixStackRotateWithVector4 (
    GLKMatrixStackRef _Nonnull stack,
    float radians,
    GLKVector4 axisVector
);

Declaration
From
void GLKMatrixStackRotateX (
    GLKMatrixStackRef stack,
    float radians
);
To
void GLKMatrixStackRotateX (
    GLKMatrixStackRef _Nonnull stack,
    float radians
);

Declaration
From
void GLKMatrixStackRotateY (
    GLKMatrixStackRef stack,
    float radians
);
To
void GLKMatrixStackRotateY (
    GLKMatrixStackRef _Nonnull stack,
    float radians
);

Declaration
From
void GLKMatrixStackRotateZ (
    GLKMatrixStackRef stack,
    float radians
);
To
void GLKMatrixStackRotateZ (
    GLKMatrixStackRef _Nonnull stack,
    float radians
);

Declaration
From
void GLKMatrixStackScale (
    GLKMatrixStackRef stack,
    float sx,
    float sy,
    float sz
);
To
void GLKMatrixStackScale (
    GLKMatrixStackRef _Nonnull stack,
    float sx,
    float sy,
    float sz
);

Declaration
From
void GLKMatrixStackScaleWithVector3 (
    GLKMatrixStackRef stack,
    GLKVector3 scaleVector
);
To
void GLKMatrixStackScaleWithVector3 (
    GLKMatrixStackRef _Nonnull stack,
    GLKVector3 scaleVector
);

Declaration
From
void GLKMatrixStackScaleWithVector4 (
    GLKMatrixStackRef stack,
    GLKVector4 scaleVector
);
To
void GLKMatrixStackScaleWithVector4 (
    GLKMatrixStackRef _Nonnull stack,
    GLKVector4 scaleVector
);

Declaration
From
int GLKMatrixStackSize (
    GLKMatrixStackRef stack
);
To
int GLKMatrixStackSize (
    GLKMatrixStackRef _Nonnull stack
);

Declaration
From
void GLKMatrixStackTranslate (
    GLKMatrixStackRef stack,
    float tx,
    float ty,
    float tz
);
To
void GLKMatrixStackTranslate (
    GLKMatrixStackRef _Nonnull stack,
    float tx,
    float ty,
    float tz
);

Declaration
From
void GLKMatrixStackTranslateWithVector3 (
    GLKMatrixStackRef stack,
    GLKVector3 translationVector
);
To
void GLKMatrixStackTranslateWithVector3 (
    GLKMatrixStackRef _Nonnull stack,
    GLKVector3 translationVector
);

Declaration
From
void GLKMatrixStackTranslateWithVector4 (
    GLKMatrixStackRef stack,
    GLKVector4 translationVector
);
To
void GLKMatrixStackTranslateWithVector4 (
    GLKMatrixStackRef _Nonnull stack,
    GLKVector4 translationVector
);

GLKModel.h (Added)

GLKReflectionMapEffect.h

Declaration
From
@property(nonatomic, readonly) GLKEffectPropertyTexture *textureCubeMap
To
@property(nonatomic, readonly, nonnull) GLKEffectPropertyTexture *textureCubeMap

GLKSkyboxEffect.h

Declaration
From
@property(nonatomic, copy) NSString *label
To
@property(nonatomic, copy, nullable) NSString *label

Declaration
From
@property(nonatomic, readonly) GLKEffectPropertyTexture *textureCubeMap
To
@property(nonatomic, readonly, nonnull) GLKEffectPropertyTexture *textureCubeMap

Declaration
From
@property(nonatomic, readonly) GLKEffectPropertyTransform *transform
To
@property(nonatomic, readonly, nonnull) GLKEffectPropertyTransform *transform

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
- (id)initWithShareContext:(NSOpenGLContext *)context
To
- (instancetype _Nonnull)initWithShareContext:(NSOpenGLContext * _Nonnull)context

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