예제 #1
0
    // Checks if the GL surface has changed
    public static bool IsRendererDirty()
    {
        CameraDeviceImpl cameraDeviceImpl = (CameraDeviceImpl)CameraDevice.Instance;

        if (QCARRuntimeUtilities.IsPlayMode())
        {
            return(cameraDeviceImpl.IsDirty());
        }
        else
        {
            // check native renderer
            return(QCARWrapper.Instance.IsRendererDirty() == 1 || cameraDeviceImpl.IsDirty());
        }
    }
예제 #2
0
    public static bool IsRendererDirty()
    {
        CameraDeviceImpl instance = (CameraDeviceImpl)CameraDevice.Instance;

        if (QCARRuntimeUtilities.IsPlayMode())
        {
            return(instance.IsDirty());
        }
        if (QCARWrapper.Instance.IsRendererDirty() != 1)
        {
            return(instance.IsDirty());
        }
        return(true);
    }