iOS Developer Library

Developer

GLKit Framework Reference GLKEffectPropertyTransform Class Reference

Options
Deployment Target:

On This Page
Language:

GLKEffectPropertyTransform

Inheritance


Conforms To


Import Statement


Swift

import GLKit

Objective-C

@import GLKit;

Availability


Available in iOS 5.0 and later.

The GLKEffectPropertyTransform class defines properties that provide the coordinate transformations to be performed when rendering the effect.

  • The matrix used to transform position coordinates from world space to eye space.

    Declaration

    Swift

    var modelviewMatrix: GLKMatrix4

    Objective-C

    @property(nonatomic, assign) GLKMatrix4 modelviewMatrix

    Import Statement

    Objective-C

    @import GLKit;

    Swift

    import GLKit

    Availability

    Available in iOS 5.0 and later.

  • The matrix used to transform normal coordinates from world space to eye space. (read-only)

    Declaration

    Swift

    var normalMatrix: GLKMatrix3 { get }

    Objective-C

    @property(nonatomic, readonly) GLKMatrix3 normalMatrix

    Discussion

    The normal matrix is derived from the modelviewMatrix property and is automatically calculated when needed.

    Import Statement

    Objective-C

    @import GLKit;

    Swift

    import GLKit

    Availability

    Available in iOS 5.0 and later.

  • The matrix used to transform position coordinates from eye space to projection space.

    Declaration

    Swift

    var projectionMatrix: GLKMatrix4

    Objective-C

    @property(nonatomic, assign) GLKMatrix4 projectionMatrix

    Discussion

    Convenience functions for creating perspective and orthographic projection matrices can be found in GLKMatrix4 Reference.

    Import Statement

    Objective-C

    @import GLKit;

    Swift

    import GLKit

    Availability

    Available in iOS 5.0 and later.