Example #1
0
 private MeshCallbacks(
     IntPtr _sceneServiceHandle,
     MeshUploader.AllocateUnpackedMeshCallback _allocateUnpackedMesh,
     MeshUploader.UploadUnpackedMeshCallback _uploadUnpackedMesh,
     MapGameObjectScene.AddMeshCallback _addMesh,
     MapGameObjectScene.DeleteMeshCallback _deleteMesh,
     MapGameObjectScene.VisibilityCallback _setVisible)
 {
     sceneServiceHandle   = _sceneServiceHandle;
     allocateUnpackedMesh = _allocateUnpackedMesh;
     uploadUnpackedMesh   = _uploadUnpackedMesh;
     addMesh    = _addMesh;
     deleteMesh = _deleteMesh;
     setVisible = _setVisible;
 }
 private static extern void Initialize(
     int screenWidth,
     int screenHeight,
     float screenDPI,
     [MarshalAs(UnmanagedType.LPStr)] string apiKey,
     [MarshalAs(UnmanagedType.LPStr)] string assetPath,
     ref ConfigParams.NativeConfig config,
     MeshUploader.AllocateUnpackedMeshCallback allocateUnpackedMesh,
     MeshUploader.UploadUnpackedMeshCallback uploadUnpackedMesh,
     MapGameObjectScene.AddMeshCallback addMesh,
     MapGameObjectScene.DeleteMeshCallback deleteMesh,
     MapGameObjectScene.VisibilityCallback setVisible,
     CameraApi.CameraEventCallback cameraEventCallback,
     AssertHandler.HandleAssertCallback assertHandlerCallback,
     TextureLoadHandler.AllocateTextureBufferCallback allocateTextureBuffer,
     TextureLoadHandler.BeginUploadTextureBufferCallback beginUploadTextureBuffer,
     TextureLoadHandler.ReleaseTextureCallback releaseTexture,
     [MarshalAs(UnmanagedType.LPStr)] string coverageTreeUrl,
     [MarshalAs(UnmanagedType.LPStr)] string themeUrl
     );