MaxstARSDK
BackgroundRenderer.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 "Types.h"
9 #include "BackgroundTexture.h"
10 
11 namespace maxstAR
12 {
18  {
19  public:
29  {
30  FEATURE_RENDERER = 0x01,
31  PROGRESS_RENDERER = 0x02,
32  AXIS_RENDERER = 0x04,
33  SURFACE_MESH_RENDERER = 0x08,
34  VIEW_FINDER_RENDERER = 0X10
35  };
36 
40  static BackgroundRenderer * getInstance();
41 
51  virtual void setRenderingOption(int option = 0) = 0;
52 
58  virtual void setClippingPlane(float nearClipPlane, float farClipPlane) = 0;
59 
64  virtual BackgroundTexture * getBackgroundTexture() = 0;
65 
69  virtual void begin(BackgroundTexture * texture) = 0;
70 
74  virtual void renderBackgroundToTexture() = 0;
75 
79  virtual void end() = 0;
80  };
81 }
RenderingOption
Additional rendering option. Slam feature point, Surface mesh, etc. 0x01 : Feature point rendering...
Definition: BackgroundRenderer.h:28
Definition: BackgroundRenderer.h:11
Do background rendering. Background rendering includes camera image, feature point, slam initialization progress bar, watermark, surface mesh.
Definition: BackgroundRenderer.h:17
Contains information of background rendering texture.
Definition: BackgroundTexture.h:15
#define MAXSTAR_API
Definition: Types.h:11