-
Notifications
You must be signed in to change notification settings - Fork 0
/
DirectXViewProvider.h
47 lines (37 loc) · 1.24 KB
/
DirectXViewProvider.h
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
//// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
//// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
//// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
//// PARTICULAR PURPOSE.
////
//// Copyright (c) Microsoft Corporation. All rights reserved
#pragma once
#include <wrl.h>
#include <Windows.ApplicationModel.h>
typedef enum class ActivationEntryPoint
{
Unknown,
DirectXApplication
} ActivationEntryPoint;
ref class DirectXViewProvider : public Windows::ApplicationModel::Core::IFrameworkView
{
public:
DirectXViewProvider();
// IViewProvider Methods
virtual void Initialize(
_In_ Windows::ApplicationModel::Core::CoreApplicationView^ applicationView
);
virtual void SetWindow(
_In_ Windows::UI::Core::CoreWindow^ window
);
virtual void Load(_In_ Platform::String^ entryPoint);
virtual void Run();
virtual void Uninitialize();
private:
Windows::UI::Core::CoreWindow^ m_window;
Windows::ApplicationModel::Core::CoreApplicationView^ m_applicationView;
};
ref class DirectXViewProviderFactory : public Windows::ApplicationModel::Core::IFrameworkViewSource
{
public:
virtual Windows::ApplicationModel::Core::IFrameworkView^ CreateView();
};