Ejemplo n.º 1
0
 private ThreadServiceCallbacks(
     IntPtr _threadServiceHandle,
     ThreadService.CreateThreadDelegate _createThread,
     ThreadService.JoinThreadDelegate _joinThread)
 {
     threadServiceHandle = _threadServiceHandle;
     createThread        = _createThread;
     joinThread          = _joinThread;
 }
 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,
     ThreadService.CreateThreadDelegate createThread,
     ThreadService.JoinThreadDelegate joinThread,
     [MarshalAs(UnmanagedType.LPStr)] string coverageTreeUrl,
     [MarshalAs(UnmanagedType.LPStr)] string themeUrl
     );