class ARFrameRendererFactory (Niantic.ARDK.Rendering.ARFrameRendererFactory)

Overview

class ARFrameRendererFactory {
public:
    // methods

    static ARFrameRenderer Create(
        RenderTarget target,
        float nearClipping = NEAR_CLIPPING,
        float farClipping = FAR_CLIPPING
    );

    static ARFrameRenderer Create(
        RenderTarget target,
        Resolution resolution,
        float nearClipping = NEAR_CLIPPING,
        float farClipping = FAR_CLIPPING
    );

    static ARFrameRenderer Create(
        RenderTarget target,
        Resolution resolution,
        RuntimeEnvironment env,
        float nearClipping = NEAR_CLIPPING,
        float farClipping = FAR_CLIPPING
    );

    static ARFrameRenderer Create(
        RenderTarget target,
        RuntimeEnvironment env,
        float nearClipping = NEAR_CLIPPING,
        float farClipping = FAR_CLIPPING
    );
};

Detailed Documentation

Methods

static ARFrameRenderer Create(
    RenderTarget target,
    float nearClipping = NEAR_CLIPPING,
    float farClipping = FAR_CLIPPING
)

Create an ARFrameRenderer appropriate for the current device.

On a mobile device, the attempted order will be LiveDevice, Remote, and finally Mock. In the Unity Editor, the attempted order will be Remote, then Mock.

Returns:

The created renderer, or throws if it was not possible to create a renderer.

static ARFrameRenderer Create(
    RenderTarget target,
    RuntimeEnvironment env,
    float nearClipping = NEAR_CLIPPING,
    float farClipping = FAR_CLIPPING
)

Create an ARFrameRenderer with the specified RuntimeEnvironment.

Parameters:

env

The runtime environment to create the renderer for.

Returns:

The created renderer, or null if it was not possible to create a renderer.