OSDN Git Service

143c1bc7ad2bab5dfb231ee0b32d555a5e93461b
[shooting3/shootinggame.git] / ShootingGame / MainPage.xaml.h
1 //
2 // MainPage.xaml.h
3 // Declaration of the MainPage class.
4 //
5
6 #pragma once
7 #include "Common\LayoutAwarePage.h"
8 #include "MainPage.g.h"
9
10 namespace ShootingGame
11 {
12         /// <summary>
13         /// An empty page that can be used on its own or navigated to within a Frame.
14         /// </summary>
15         public ref class MainPage sealed
16         {
17         public:
18                 MainPage();
19     Windows::UI::Xaml::Controls::SwapChainBackgroundPanel^ MainPage::SwapChainBackgroundPanel()
20     {
21       return DXSwapChainPanel;
22     }
23                 void UpdateProcessTime(float delta);
24                 void UpdateFrameTime(float delta,float max,float min,float avg);
25
26         protected:
27                 virtual void OnNavigatedTo(Windows::UI::Xaml::Navigation::NavigationEventArgs^ e) override;
28   private:
29     Windows::UI::Xaml::Controls::Frame^ hiddenFrame_;
30     void Button_Click_1(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
31   };
32 }