MaxstARSDK
MaxstAR.h
Go to the documentation of this file.
1 /*==============================================================================
2 Copyright 2017 Maxst, Inc. All Rights Reserved.
3 ==============================================================================*/
4 
5 
6 #pragma once
7 
8 #include <string>
9 #include "Types.h"
10 
11 using namespace std;
12 
13 namespace maxstAR
14 {
19  MAXSTAR_API void init(string appKey);
20 
24  MAXSTAR_API void deinit();
25 
30 
35 
41  MAXSTAR_API void onSurfaceChanged(int viewWidth, int viewHeight);
42 
47 
54 }
MAXSTAR_API void setScreenOrientation(ScreenOrientation orientation)
Set device orientation.
MAXSTAR_API void onSurfaceChanged(int viewWidth, int viewHeight)
Called when rendering surface&#39;s size changed (i.e. orientation change, resizing rendering surface) ...
Definition: BackgroundRenderer.h:11
ScreenOrientation
Screen orientation. (unity screen orientation order) UNKNOWN : PORTRAIT : PORTRAIT_UP : PORTRAIT_DOWN...
Definition: Types.h:43
MAXSTAR_API bool isInitialized()
Check AR engine has been initialized.
MAXSTAR_API void onSurfaceDestroyed()
Called when rendering surface about to destroyed.
MAXSTAR_API void deinit()
Deinitialize AR Engine.
MAXSTAR_API void onSurfaceCreated()
Called when surface created on rendering thread.
#define MAXSTAR_API
Definition: Types.h:11
MAXSTAR_API void init(string appKey)
Initialize AR engine.