Type Method

cameraWithMDLCamera:

Creates a camera from the specified Model I/O camera object.

Declaration

+ (instancetype)cameraWithMDLCamera:(MDLCamera *)mdlCamera;

Parameters

mdlCamera

A Model I/O camera object.

Return Value

A new camera object.

Discussion

The Model I/O framework provides universal support for import, export, description, and processing of several 3D asset file formats and related resources. (For details, see Model I/O.) The MDLCamera class is a generic description of a viewpoint on a scene, supporting a superset of the attributes described by the SCNCamera class.

See Also

Creating a Camera

+ camera

Creates a new camera object.