public class NativeStartupConfiguration extends StartupConfiguration
Modifier and Type | Field and Description |
---|---|
static String |
ORIGIN_DEFAULT |
static String |
ORIGIN_UNITY |
mOrigin
Constructor and Description |
---|
NativeStartupConfiguration() |
Modifier and Type | Method and Description |
---|---|
String |
getDefaultOrigin() |
List<RenderSettings.RenderingAPI> |
getRenderingAPI()
Get which
RenderingAPIs are used by the Wikitude SDK. |
int |
getTextureId() |
boolean |
isValidOrigin() |
void |
setRenderingAPI(RenderSettings.RenderingAPI... renderingAPIs)
Sets the
RenderingAPIs the Wikitude SDK should use. |
void |
setTextureId(int textureId) |
getCameraFocusMode, getCameraManualFocusDistance, getCameraPosition, getCameraResolution, getKey, getLicenseKey, getOrigin, isCamera2Enabled, setCamera2Enabled, setCameraFocusMode, setCameraManualFocusDistance, setCameraPosition, setCameraResolution, setLicenseKey, setOrigin
public static final String ORIGIN_UNITY
public static final String ORIGIN_DEFAULT
public List<RenderSettings.RenderingAPI> getRenderingAPI()
RenderingAPIs
are used by the Wikitude SDK.RenderingAPIs
.RenderSettings.RenderingAPI
public void setRenderingAPI(RenderSettings.RenderingAPI... renderingAPIs)
RenderingAPIs
the Wikitude SDK should use. RenderSettings.RenderingAPI
is specified the Wikitude SDK will use OpenGL ES 2 internally.
NativeStartupConfiguration startupConfig = new NativeStartupConfiguration();
// try to create OpenGL ES 3 context, if OpenGL ES 3 is not supported on the device create an OpenGL ES 2 context
startupConfig.setRenderingAPI(RenderSettings.RenderingAPI.OPENGL_ES_3,
RenderSettings.RenderingAPI.OPENGL_ES_2);
// try to create OpenGL ES 3 context, if OpenGL ES 3 is not supported on the device there will be undefined behaviour
startupConfig.setRenderingAPI(RenderSettings.RenderingAPI.OPENGL_ES_3);
// try to create OpenGL ES 2 context
startupConfig.setRenderingAPI();
External RenderingrenderingAPIs
- Varargs specifying the possible RenderingAPIs
RenderSettings.RenderingAPI
public int getTextureId()
public void setTextureId(int textureId)
public boolean isValidOrigin()
isValidOrigin
in class StartupConfiguration
public String getDefaultOrigin()
getDefaultOrigin
in class StartupConfiguration