Adding ViroKit. Needs AWSCore :(

This commit is contained in:
John Lyon-Smith
2018-03-27 17:46:15 -07:00
parent 2ab15e7dc1
commit 02e06dface
844 changed files with 86921 additions and 21 deletions

View File

@@ -0,0 +1,46 @@
//
// VROARImageTargetiOS.h
// ViroKit
//
// Created by Andy Chu on 1/30/18.
// Copyright © 2018 Viro Media. All rights reserved.
//
#ifndef VROARImageTargetiOS_h
#define VROARImageTargetiOS_h
#include "VROARImageTarget.h"
#include <UIKit/UIKit.h>
@class ARReferenceImage;
class VROARImageTargetiOS : public VROARImageTarget {
public:
VROARImageTargetiOS(UIImage *sourceImage, VROImageOrientation orientation, float physicalWidth);
virtual ~VROARImageTargetiOS();
void initWithTrackingImpl(VROImageTrackingImpl impl);
UIImage *getSourceImage() {
return _sourceImage;
}
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 110300
ARReferenceImage *getARReferenceImage();
#endif
private:
UIImage *_sourceImage;
VROImageOrientation _orientation;
float _physicalWidth;
VROImageTrackingImpl _currentImpl;
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 110300
ARReferenceImage *_referenceImage;
#endif
};
#endif /* VROARImageTargetiOS_h */