MaxstARSDK  3.5.0
MasMaxstAR.mm
1 //
2 // MasMaxstAR.m
3 // MaxstAR
4 //
5 // Created by Kimseunglee on 2017. 12. 7..
6 // Copyright © 2017년 Maxst. All rights reserved.
7 //
8 
9 #import "MasMaxstAR.h"
10 #include "MaxstAR.h"
11 
12 @implementation MasMaxstAR
13 + (void) init:(NSString*) appKey {
14  string appKeyString = [appKey cStringUsingEncoding:NSUTF8StringEncoding];
15  maxstAR::init(appKeyString);
16 }
17 
18 + (void) deinit {
19  maxstAR::deinit();
20 }
21 
22 + (bool) isInitialized {
23  return maxstAR::isInitialized();
24 }
25 
26 + (void) onSurfaceChanged:(int)viewWidth height:(int)viewHeight {
27  maxstAR::onSurfaceChanged(viewWidth, viewHeight);
28 }
29 
30 + (void) setScreenOrientation:(MasScreenOrientation)orientation {
31  maxstAR::setScreenOrientation((maxstAR::ScreenOrientation)orientation);
32 }
33 
34 @end
void deinit()
Deinitialize AR Engine.
Definition: MasMaxstAR.mm:18
bool isInitialized()
Check AR engine has been initialized.
Definition: MasMaxstAR.mm:22