Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
Dschogo committed Jun 22, 2022
1 parent 7a905ef commit 80c4679
Show file tree
Hide file tree
Showing 2,122 changed files with 178,669 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Assets/ARDK.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions Assets/ARDK/AR.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 31 additions & 0 deletions Assets/ARDK/AR/ARError.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// Copyright 2022 Niantic, Inc. All Rights Reserved.

namespace Niantic.ARDK.AR
{
/// Possible error values output by an AR session's didFailWithError callback.
public enum ARError
{
/// The ERConfiguration object passed to the Run() method is not supported by the current device.
UnsupportedConfiguration = 100,

/// A sensor required to run the session is not available.
SensorUnavailable = 101,

/// A sensor failed to provide the required input.
SensorFailed = 102,

/// The user has denied your app permission to use the device camera.
CameraUnauthorized = 103,

/// World tracking has encountered a fatal error.
WorldTrackingFailed = 200,

/// An invalid reference image was passed in the configuration.
InvalidReferenceImage = 300,

/// AR features are not available currently, check for availability using the
/// ARCore Availability API.
/// @note This is an Android-only value.
AvailabilityFailure = 400,
}
}
12 changes: 12 additions & 0 deletions Assets/ARDK/AR/ARError.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions Assets/ARDK/AR/ARFrameDisposalPolicy.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Copyright 2022 Niantic, Inc. All Rights Reserved.

namespace Niantic.ARDK.AR
{
// Maybe this could become a Flags enum about what to retain in the future.
public enum ARFrameDisposalPolicy
{
DisposeOldFrames,
ReleaseImageAndTexturesOfOldFrames,
KeepOldFrames
}
}
3 changes: 3 additions & 0 deletions Assets/ARDK/AR/ARFrameDisposalPolicy.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/ARDK/AR/ARSessionEventArgs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions Assets/ARDK/AR/ARSessionEventArgs/ARSessionDeinitializedArgs.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Copyright 2022 Niantic, Inc. All Rights Reserved.

using Niantic.ARDK.Utilities;

namespace Niantic.ARDK.AR.ARSessionEventArgs
{
public struct ARSessionDeinitializedArgs:
IArdkEventArgs
{
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions Assets/ARDK/AR/ARSessionEventArgs/ARSessionFailedArgs.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Copyright 2022 Niantic, Inc. All Rights Reserved.

using Niantic.ARDK.Utilities;

namespace Niantic.ARDK.AR.ARSessionEventArgs
{
public struct ARSessionFailedArgs:
IArdkEventArgs
{
public readonly ARError Error;

public ARSessionFailedArgs(ARError error)
{
Error = error;
}
}
}
3 changes: 3 additions & 0 deletions Assets/ARDK/AR/ARSessionEventArgs/ARSessionFailedArgs.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions Assets/ARDK/AR/ARSessionEventArgs/ARSessionInterruptedArgs.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Copyright 2022 Niantic, Inc. All Rights Reserved.

using Niantic.ARDK.Utilities;

namespace Niantic.ARDK.AR.ARSessionEventArgs
{
public struct ARSessionInterruptedArgs:
IArdkEventArgs
{
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Copyright 2022 Niantic, Inc. All Rights Reserved.

using Niantic.ARDK.Utilities;

namespace Niantic.ARDK.AR.ARSessionEventArgs
{
public struct ARSessionInterruptionEndedArgs:
IArdkEventArgs
{
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions Assets/ARDK/AR/ARSessionEventArgs/ARSessionPausedArgs.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Copyright 2022 Niantic, Inc. All Rights Reserved.

using Niantic.ARDK.Utilities;

namespace Niantic.ARDK.AR.ARSessionEventArgs
{
public struct ARSessionPausedArgs:
IArdkEventArgs
{
}
}
3 changes: 3 additions & 0 deletions Assets/ARDK/AR/ARSessionEventArgs/ARSessionPausedArgs.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions Assets/ARDK/AR/ARSessionEventArgs/ARSessionRanArgs.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Copyright 2022 Niantic, Inc. All Rights Reserved.

using Niantic.ARDK.Utilities;

namespace Niantic.ARDK.AR.ARSessionEventArgs
{
public struct ARSessionRanArgs:
IArdkEventArgs
{
}
}
3 changes: 3 additions & 0 deletions Assets/ARDK/AR/ARSessionEventArgs/ARSessionRanArgs.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions Assets/ARDK/AR/ARSessionEventArgs/AnchorsArgs.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Copyright 2022 Niantic, Inc. All Rights Reserved.

using System.Collections.ObjectModel;

using Niantic.ARDK.AR.Anchors;
using Niantic.ARDK.Utilities;

namespace Niantic.ARDK.AR.ARSessionEventArgs
{
public struct AnchorsArgs:
IArdkEventArgs
{
public AnchorsArgs(IARAnchor[] anchors):
this()
{
Anchors = new ReadOnlyCollection<IARAnchor>(anchors);
}

public ReadOnlyCollection<IARAnchor> Anchors { get; }
}
}
11 changes: 11 additions & 0 deletions Assets/ARDK/AR/ARSessionEventArgs/AnchorsArgs.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions Assets/ARDK/AR/ARSessionEventArgs/AnchorsMergedArgs.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// Copyright 2022 Niantic, Inc. All Rights Reserved.

using System.Collections.ObjectModel;

using Niantic.ARDK.AR.Anchors;
using Niantic.ARDK.Utilities;

namespace Niantic.ARDK.AR.ARSessionEventArgs
{
public struct AnchorsMergedArgs:
IArdkEventArgs
{
public AnchorsMergedArgs(IARAnchor parent, IARAnchor[] children):
this()
{
Parent = parent;
Children = new ReadOnlyCollection<IARAnchor>(children);
}

public IARAnchor Parent { get; }
public ReadOnlyCollection<IARAnchor> Children { get; }
}
}
11 changes: 11 additions & 0 deletions Assets/ARDK/AR/ARSessionEventArgs/AnchorsMergedArgs.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions Assets/ARDK/AR/ARSessionEventArgs/AnyARSessionInitializedArgs.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Copyright 2022 Niantic, Inc. All Rights Reserved.

using Niantic.ARDK.Utilities;

namespace Niantic.ARDK.AR.ARSessionEventArgs
{
public struct AnyARSessionInitializedArgs:
IArdkEventArgs
{
public AnyARSessionInitializedArgs(IARSession session, bool isLocal):
this()
{
Session = session;
_IsLocal = isLocal;
}

public IARSession Session { get; private set; }

internal bool _IsLocal { get; }
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Copyright 2022 Niantic, Inc. All Rights Reserved.

using Niantic.ARDK.AR.Camera;
using Niantic.ARDK.Utilities;

namespace Niantic.ARDK.AR.ARSessionEventArgs
{
public struct CameraTrackingStateChangedArgs:
IArdkEventArgs
{
public CameraTrackingStateChangedArgs(IARCamera camera, TrackingState trackingState):
this()
{
Camera = camera;
TrackingState = trackingState;
}

public IARCamera Camera { get; private set; }
public TrackingState TrackingState { get; private set; }
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions Assets/ARDK/AR/ARSessionEventArgs/FrameUpdatedArgs.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// Copyright 2022 Niantic, Inc. All Rights Reserved.

using Niantic.ARDK.AR.Frame;
using Niantic.ARDK.Utilities;

namespace Niantic.ARDK.AR.ARSessionEventArgs
{
public struct FrameUpdatedArgs:
IArdkEventArgs
{
public FrameUpdatedArgs(IARFrame frame)
: this()
{
Frame = frame;
}

public IARFrame Frame { get; private set; }
}
}
11 changes: 11 additions & 0 deletions Assets/ARDK/AR/ARSessionEventArgs/FrameUpdatedArgs.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 80c4679

Please sign in to comment.