-
Notifications
You must be signed in to change notification settings - Fork 154
/
AppView.cpp
48 lines (40 loc) · 1.25 KB
/
AppView.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
//
//*********************************************************
#include "pch.h"
#include "AppMain.h"
#include "AppView.h"
// The main function is only used to initialize our IFrameworkView class.
// Under most circumstances, you should not need to modify this function.
[Platform::MTAThread]
int main(
Platform::Array<Platform::String^>^)
{
ComputeOnDevice::AppViewSource^ appViewSource =
ref new ComputeOnDevice::AppViewSource();
Windows::ApplicationModel::Core::CoreApplication::Run(
appViewSource);
return 0;
}
namespace ComputeOnDevice
{
Windows::ApplicationModel::Core::IFrameworkView^ AppViewSource::CreateView()
{
return ref new AppView();
}
AppView::AppView()
{
}
std::shared_ptr<Holographic::AppMainBase> AppView::InitializeCore()
{
return std::make_shared<AppMain>(
_deviceResources);
}
}