├── .gitattributes ├── .gitignore ├── AngleMR ├── AngleMR.sln └── AngleMR │ ├── AngleMR.vcxproj │ ├── AngleMR.vcxproj.filters │ ├── AngleMRMain.cpp │ ├── AngleMRMain.h │ ├── AngleMR_TemporaryKey.pfx │ ├── AppView.cpp │ ├── AppView.h │ ├── Assets │ ├── LockScreenLogo.scale-200.png │ ├── SplashScreen.scale-200.png │ ├── Square150x150Logo.scale-200.png │ ├── Square44x44Logo.scale-200.png │ ├── Square44x44Logo.targetsize-24_altform-unplated.png │ ├── StoreLogo.png │ └── Wide310x150Logo.scale-200.png │ ├── Common │ ├── AngleResources.cpp │ ├── AngleResources.h │ ├── CameraResources.cpp │ ├── CameraResources.h │ ├── DeviceResources.cpp │ ├── DeviceResources.h │ ├── DirectXHelper.h │ └── StepTimer.h │ ├── Content │ ├── GeometryShader.hlsl │ ├── MathHelper.h │ ├── PixelShader.hlsl │ ├── ShaderStructures.h │ ├── SimpleRenderer.cpp │ ├── SimpleRenderer.h │ ├── SpatialInputHandler.cpp │ ├── SpatialInputHandler.h │ ├── SpinningCubeRenderer.cpp │ ├── SpinningCubeRenderer.h │ ├── VPRTVertexShader.hlsl │ └── VertexShader.hlsl │ ├── Package.appxmanifest │ ├── packages.config │ ├── pch.cpp │ └── pch.h ├── HelloWorld ├── App.xaml ├── App.xaml.cpp ├── App.xaml.h ├── Assets │ ├── LockScreenLogo.scale-200.png │ ├── SplashScreen.scale-200.png │ ├── Square150x150Logo.scale-200.png │ ├── Square44x44Logo.scale-200.png │ ├── Square44x44Logo.targetsize-24_altform-unplated.png │ ├── StoreLogo.png │ └── Wide310x150Logo.scale-200.png ├── HelloWorld.sln ├── HelloWorld.vcxproj ├── HelloWorld.vcxproj.filters ├── HelloWorld_TemporaryKey.pfx ├── MainPage.xaml ├── MainPage.xaml.cpp ├── MainPage.xaml.h ├── Package.appxmanifest ├── pch.cpp └── pch.h ├── HolographicWebView ├── HolographicWebView.sln └── HolographicWebView │ ├── App.xaml │ ├── App.xaml.cpp │ ├── App.xaml.h │ ├── Assets │ ├── LockScreenLogo.scale-200.png │ ├── SplashScreen.scale-200.png │ ├── Square150x150Logo.scale-200.png │ ├── Square44x44Logo.scale-200.png │ ├── Square44x44Logo.targetsize-24_altform-unplated.png │ ├── StoreLogo.png │ ├── Wide310x150Logo.scale-200.png │ ├── edge.png │ └── holoHello.dds │ ├── HolographicView │ ├── AppView.cpp │ ├── AppView.h │ ├── Common │ │ ├── CameraResources.cpp │ │ ├── CameraResources.h │ │ ├── DeviceResources.cpp │ │ ├── DeviceResources.h │ │ ├── DirectXHelper.h │ │ └── StepTimer.h │ ├── Content │ │ ├── CreateDistanceFieldPixelShader.hlsl │ │ ├── FullscreenQuadVertexShader.hlsl │ │ ├── GeometryShader.hlsl │ │ ├── PixelShader.hlsl │ │ ├── QuadRenderer.cpp │ │ ├── QuadRenderer.h │ │ ├── ShaderStructures.h │ │ ├── SpatialInputHandler.cpp │ │ ├── SpatialInputHandler.h │ │ ├── TexturePixelShader.hlsl │ │ ├── VPRTVertexShader.hlsl │ │ └── VertexShader.hlsl │ ├── HolographicWebViewMain.cpp │ ├── HolographicWebViewMain.h │ ├── pch.cpp │ └── pch.h │ ├── HolographicWebView.vcxproj │ ├── HolographicWebView.vcxproj.filters │ ├── HolographicWebView_TemporaryKey.pfx │ ├── MainPage.xaml │ ├── MainPage.xaml.cpp │ ├── MainPage.xaml.h │ ├── Package.appxmanifest │ ├── pch.cpp │ └── pch.h ├── MRAppServiceDemo ├── ConsoleApplication1 │ ├── ConsoleApplication1.cpp │ ├── ConsoleApplication1.vcxproj │ ├── ConsoleApplication1.vcxproj.filters │ ├── ReadMe.txt │ ├── stdafx.cpp │ ├── stdafx.h │ └── targetver.h ├── MRAppService │ ├── AppService.cpp │ ├── AppService.h │ ├── MRAppService.vcxproj │ ├── MRAppService.vcxproj.filters │ ├── MRAppServiceListener.cpp │ ├── MRAppServiceListener.h │ ├── pch.cpp │ └── pch.h ├── MRAppServiceDemo.sln ├── MRAppServiceDemo │ ├── AppView.cpp │ ├── AppView.h │ ├── Assets │ │ ├── LargeTile.scale-100.png │ │ ├── LargeTile.scale-125.png │ │ ├── LargeTile.scale-150.png │ │ ├── LargeTile.scale-200.png │ │ ├── LargeTile.scale-400.png │ │ ├── LockScreenLogo.scale-200.png │ │ ├── SmallTile.scale-100.png │ │ ├── SmallTile.scale-125.png │ │ ├── SmallTile.scale-150.png │ │ ├── SmallTile.scale-200.png │ │ ├── SmallTile.scale-400.png │ │ ├── SplashScreen.scale-100.png │ │ ├── SplashScreen.scale-125.png │ │ ├── SplashScreen.scale-150.png │ │ ├── SplashScreen.scale-200.png │ │ ├── SplashScreen.scale-400.png │ │ ├── Square150x150Logo.scale-100.png │ │ ├── Square150x150Logo.scale-125.png │ │ ├── Square150x150Logo.scale-150.png │ │ ├── Square150x150Logo.scale-200.png │ │ ├── Square150x150Logo.scale-400.png │ │ ├── Square44x44Logo.altform-unplated_targetsize-16.png │ │ ├── Square44x44Logo.altform-unplated_targetsize-256.png │ │ ├── Square44x44Logo.altform-unplated_targetsize-32.png │ │ ├── Square44x44Logo.altform-unplated_targetsize-48.png │ │ ├── Square44x44Logo.scale-100.png │ │ ├── Square44x44Logo.scale-125.png │ │ ├── Square44x44Logo.scale-150.png │ │ ├── Square44x44Logo.scale-200.png │ │ ├── Square44x44Logo.scale-400.png │ │ ├── Square44x44Logo.targetsize-16.png │ │ ├── Square44x44Logo.targetsize-24.png │ │ ├── Square44x44Logo.targetsize-24_altform-unplated.png │ │ ├── Square44x44Logo.targetsize-256.png │ │ ├── Square44x44Logo.targetsize-32.png │ │ ├── Square44x44Logo.targetsize-48.png │ │ ├── StoreLogo.scale-100.png │ │ ├── StoreLogo.scale-125.png │ │ ├── StoreLogo.scale-150.png │ │ ├── StoreLogo.scale-200.png │ │ ├── StoreLogo.scale-400.png │ │ ├── Wide310x150Logo.scale-100.png │ │ ├── Wide310x150Logo.scale-125.png │ │ ├── Wide310x150Logo.scale-150.png │ │ ├── Wide310x150Logo.scale-200.png │ │ └── Wide310x150Logo.scale-400.png │ ├── Common │ │ ├── CameraResources.cpp │ │ ├── CameraResources.h │ │ ├── DeviceResources.cpp │ │ ├── DeviceResources.h │ │ ├── DirectXHelper.h │ │ └── StepTimer.h │ ├── Content │ │ ├── GeometryShader.hlsl │ │ ├── PixelShader.hlsl │ │ ├── ShaderStructures.h │ │ ├── SpatialInputHandler.cpp │ │ ├── SpatialInputHandler.h │ │ ├── SpinningCubeRenderer.cpp │ │ ├── SpinningCubeRenderer.h │ │ ├── VPRTVertexShader.hlsl │ │ └── VertexShader.hlsl │ ├── MRAppServiceDemo.vcxproj │ ├── MRAppServiceDemo.vcxproj.filters │ ├── MRAppServiceDemoMain.cpp │ ├── MRAppServiceDemoMain.h │ ├── MRAppServiceDemo_TemporaryKey.pfx │ ├── Package.appxmanifest │ ├── icon.png │ ├── pch.cpp │ └── pch.h ├── README.md └── images │ ├── distance.png │ ├── mr-all-apps.png │ ├── mr-uwp-all-apps.png │ ├── mrportal.png │ ├── send.png │ ├── solution.png │ └── win32.png ├── MRCentennial ├── MRCentennial.sln ├── MRCentennial │ ├── AppView.cpp │ ├── AppView.h │ ├── Assets │ │ ├── LargeTile.scale-100.png │ │ ├── LargeTile.scale-125.png │ │ ├── LargeTile.scale-150.png │ │ ├── LargeTile.scale-200.png │ │ ├── LargeTile.scale-400.png │ │ ├── SmallTile.scale-100.png │ │ ├── SmallTile.scale-125.png │ │ ├── SmallTile.scale-150.png │ │ ├── SmallTile.scale-200.png │ │ ├── SmallTile.scale-400.png │ │ ├── SplashScreen.scale-100.png │ │ ├── SplashScreen.scale-125.png │ │ ├── SplashScreen.scale-150.png │ │ ├── SplashScreen.scale-200.png │ │ ├── SplashScreen.scale-400.png │ │ ├── Square150x150Logo.scale-100.png │ │ ├── Square150x150Logo.scale-125.png │ │ ├── Square150x150Logo.scale-150.png │ │ ├── Square150x150Logo.scale-200.png │ │ ├── Square150x150Logo.scale-400.png │ │ ├── Square44x44Logo.altform-unplated_targetsize-16.png │ │ ├── Square44x44Logo.altform-unplated_targetsize-24.png │ │ ├── Square44x44Logo.altform-unplated_targetsize-256.png │ │ ├── Square44x44Logo.altform-unplated_targetsize-32.png │ │ ├── Square44x44Logo.altform-unplated_targetsize-48.png │ │ ├── Square44x44Logo.scale-100.png │ │ ├── Square44x44Logo.scale-125.png │ │ ├── Square44x44Logo.scale-150.png │ │ ├── Square44x44Logo.scale-200.png │ │ ├── Square44x44Logo.scale-400.png │ │ ├── Square44x44Logo.targetsize-16.png │ │ ├── Square44x44Logo.targetsize-24.png │ │ ├── Square44x44Logo.targetsize-256.png │ │ ├── Square44x44Logo.targetsize-32.png │ │ ├── Square44x44Logo.targetsize-48.png │ │ ├── StoreLogo.scale-100.png │ │ ├── StoreLogo.scale-125.png │ │ ├── StoreLogo.scale-150.png │ │ ├── StoreLogo.scale-200.png │ │ ├── StoreLogo.scale-400.png │ │ ├── Wide310x150Logo.scale-100.png │ │ ├── Wide310x150Logo.scale-125.png │ │ ├── Wide310x150Logo.scale-150.png │ │ ├── Wide310x150Logo.scale-200.png │ │ └── Wide310x150Logo.scale-400.png │ ├── Common │ │ ├── CameraResources.cpp │ │ ├── CameraResources.h │ │ ├── DeviceResources.cpp │ │ ├── DeviceResources.h │ │ ├── DirectXHelper.h │ │ └── StepTimer.h │ ├── Content │ │ ├── CreateDistanceFieldPixelShader.hlsl │ │ ├── FullscreenQuadVertexShader.hlsl │ │ ├── GeometryShader.hlsl │ │ ├── PixelShader.hlsl │ │ ├── QuadRenderer.cpp │ │ ├── QuadRenderer.h │ │ ├── ShaderStructures.h │ │ ├── SpatialInputHandler.cpp │ │ ├── SpatialInputHandler.h │ │ ├── TexturePixelShader.hlsl │ │ ├── VPRTVertexShader.hlsl │ │ └── VertexShader.hlsl │ ├── MRCentennial.vcxproj │ ├── MRCentennial.vcxproj.filters │ ├── MRCentennialMain.cpp │ ├── MRCentennialMain.h │ ├── MRCentennial_TemporaryKey.pfx │ ├── Package.appxmanifest │ ├── icon.png │ ├── pch.cpp │ └── pch.h ├── README.md ├── ScreenCapture │ ├── ReadMe.txt │ ├── ScreenCapture.cpp │ ├── ScreenCapture.h │ ├── ScreenCapture.vcxproj │ ├── ScreenCapture.vcxproj.filters │ ├── dllmain.cpp │ ├── stdafx.cpp │ ├── stdafx.h │ └── targetver.h └── images │ ├── configure-package.png │ ├── create-app-package.png │ ├── create-package.png │ ├── edit-project.png │ ├── mr-all-apps.png │ ├── mr-uwp-all-apps.png │ ├── mrportal.png │ ├── reload-project.png │ ├── solution.png │ ├── unload-project.png │ ├── wack-all-tests.png │ ├── wack-passed.png │ └── wack-start.png ├── MRCentennialAppService ├── MRAppService │ ├── AppService.cpp │ ├── AppService.h │ ├── MRAppService.vcxproj │ ├── MRAppService.vcxproj.filters │ ├── MRAppServiceListener.cpp │ ├── MRAppServiceListener.h │ ├── pch.cpp │ └── pch.h ├── MRCentennialAppService.sln ├── MRCentennialAppService │ ├── AppView.cpp │ ├── AppView.h │ ├── Assets │ │ ├── LockScreenLogo.scale-200.png │ │ ├── SplashScreen.scale-200.png │ │ ├── Square150x150Logo.scale-200.png │ │ ├── Square44x44Logo.scale-200.png │ │ ├── Square44x44Logo.targetsize-24_altform-unplated.png │ │ ├── StoreLogo.png │ │ └── Wide310x150Logo.scale-200.png │ ├── Common │ │ ├── CameraResources.cpp │ │ ├── CameraResources.h │ │ ├── DeviceResources.cpp │ │ ├── DeviceResources.h │ │ ├── DirectXHelper.h │ │ └── StepTimer.h │ ├── Content │ │ ├── CreateDistanceFieldPixelShader.hlsl │ │ ├── FullscreenQuadVertexShader.hlsl │ │ ├── GeometryShader.hlsl │ │ ├── PixelShader.hlsl │ │ ├── QuadRenderer.cpp │ │ ├── QuadRenderer.h │ │ ├── ShaderStructures.h │ │ ├── SpatialInputHandler.cpp │ │ ├── SpatialInputHandler.h │ │ ├── TexturePixelShader.hlsl │ │ ├── VPRTVertexShader.hlsl │ │ └── VertexShader.hlsl │ ├── MRCentennialAppService.vcxproj │ ├── MRCentennialAppService.vcxproj.filters │ ├── MRCentennialAppServiceMain.cpp │ ├── MRCentennialAppServiceMain.h │ ├── MRCentennialAppService_TemporaryKey.pfx │ ├── Package.appxmanifest │ ├── pch.cpp │ └── pch.h └── ScreenCaptureApp │ ├── ReadMe.txt │ ├── ScreenCapture.cpp │ ├── ScreenCapture.h │ ├── ScreenCaptureApp.cpp │ ├── ScreenCaptureApp.h │ ├── ScreenCaptureApp.ico │ ├── ScreenCaptureApp.rc │ ├── ScreenCaptureApp.vcxproj │ ├── ScreenCaptureApp.vcxproj.filters │ ├── directx │ ├── DeviceResources.cpp │ ├── DeviceResources.h │ └── StepTimer.h │ ├── resource.h │ ├── small.ico │ ├── stdafx.cpp │ ├── stdafx.h │ └── targetver.h ├── MRWin32 ├── MRWin32-UWP │ ├── App.xaml │ ├── App.xaml.cs │ ├── Assets │ │ ├── LockScreenLogo.scale-200.png │ │ ├── SplashScreen.scale-200.png │ │ ├── Square150x150Logo.scale-200.png │ │ ├── Square44x44Logo.scale-200.png │ │ ├── Square44x44Logo.targetsize-24_altform-unplated.png │ │ ├── StoreLogo.png │ │ └── Wide310x150Logo.scale-200.png │ ├── MRWin32-UWP.csproj │ ├── MRWin32-UWP_TemporaryKey.pfx │ ├── MainPage.xaml │ ├── MainPage.xaml.cs │ ├── Package.appxmanifest │ └── Properties │ │ ├── AssemblyInfo.cs │ │ └── Default.rd.xml ├── MRWin32.sln ├── MRWin32 │ ├── AppMain.cpp │ ├── AppMain.h │ ├── AppView.cpp │ ├── AppView.h │ ├── Common │ │ ├── CameraResources.cpp │ │ ├── CameraResources.h │ │ ├── DeviceResources.cpp │ │ ├── DeviceResources.h │ │ ├── DirectXHelper.h │ │ └── StepTimer.h │ ├── Content │ │ ├── GeometryShader.hlsl │ │ ├── PixelShader.hlsl │ │ ├── ShaderStructures.h │ │ ├── SpatialInputHandler.cpp │ │ ├── SpatialInputHandler.h │ │ ├── SpinningCubeRenderer.cpp │ │ ├── SpinningCubeRenderer.h │ │ ├── VPRTVertexShader.hlsl │ │ └── VertexShader.hlsl │ ├── MRWin32.cpp │ ├── MRWin32.h │ ├── MRWin32.ico │ ├── MRWin32.rc │ ├── MRWin32.vcxproj │ ├── MRWin32.vcxproj.filters │ ├── MRWin32Main.cpp │ ├── MRWin32Main.h │ ├── Resource.h │ ├── pch.h │ ├── small.ico │ ├── stdafx.cpp │ ├── stdafx.h │ └── targetver.h ├── PackageProject │ ├── Images │ │ ├── LockScreenLogo.scale-200.png │ │ ├── Square150x150Logo.scale-200.png │ │ ├── Square44x44Logo.scale-200.png │ │ ├── Square44x44Logo.targetsize-24_altform-unplated.png │ │ ├── StoreLogo.png │ │ └── Wide310x150Logo.scale-200.png │ ├── Package.appxmanifest │ ├── PackageProject.wapproj │ └── PackageProject_TemporaryKey.pfx └── README.md ├── MultiInstanceUWP ├── DirectXPageComponent │ ├── AppActivation.cpp │ ├── AppActivation.h │ ├── AppService.cpp │ ├── AppService.h │ ├── AppServiceListener.cpp │ ├── AppServiceListener.h │ ├── Common │ │ ├── DeviceResources.cpp │ │ ├── DeviceResources.h │ │ ├── DirectXHelper.h │ │ └── StepTimer.h │ ├── Content │ │ ├── SceneRenderer.cpp │ │ └── SceneRenderer.h │ ├── DirectXMain.cpp │ ├── DirectXMain.h │ ├── DirectXPage.xaml │ ├── DirectXPage.xaml.cpp │ ├── DirectXPage.xaml.h │ ├── DirectXPageComponent.vcxproj │ ├── DirectXPageComponent.vcxproj.filters │ ├── ProtocolArgs.cpp │ ├── ProtocolArgs.h │ ├── WebViewPage.xaml │ ├── WebViewPage.xaml.cpp │ ├── WebViewPage.xaml.h │ ├── packages.config │ ├── pch.cpp │ └── pch.h ├── MultiInstanceUWP.sln └── MultiInstanceUWP │ ├── App.xaml │ ├── App.xaml.cpp │ ├── App.xaml.h │ ├── Assets │ ├── LockScreenLogo.scale-200.png │ ├── SplashScreen.scale-200.png │ ├── Square150x150Logo.scale-200.png │ ├── Square44x44Logo.scale-200.png │ ├── Square44x44Logo.targetsize-24_altform-unplated.png │ ├── StoreLogo.png │ └── Wide310x150Logo.scale-200.png │ ├── MainPage.xaml │ ├── MainPage.xaml.cpp │ ├── MainPage.xaml.h │ ├── MultiInstanceUWP.vcxproj │ ├── MultiInstanceUWP.vcxproj.filters │ ├── Package.appxmanifest │ ├── Program.cpp │ ├── pch.cpp │ └── pch.h ├── README.md ├── SendInput ├── MRAppService │ ├── AppService.cpp │ ├── AppService.h │ ├── MRAppService.vcxproj │ ├── MRAppService.vcxproj.filters │ ├── MRAppServiceListener.cpp │ ├── MRAppServiceListener.h │ ├── pch.cpp │ └── pch.h ├── SendInput-UWP │ ├── SendInput-UWP.vcxproj │ ├── SendInput-UWP.vcxproj.filters │ ├── dllmain.cpp │ ├── pch.cpp │ ├── pch.h │ └── targetver.h ├── SendInput-Win32 │ ├── ReadMe.txt │ ├── SendInput-Win32.vcxproj │ ├── SendInput-Win32.vcxproj.filters │ ├── dllmain.cpp │ ├── stdafx.cpp │ ├── stdafx.h │ └── targetver.h ├── SendInput.sln ├── SendInputApp │ ├── ReadMe.txt │ ├── SendInputApp.cpp │ ├── SendInputApp.h │ ├── SendInputApp.ico │ ├── SendInputApp.rc │ ├── SendInputApp.vcxproj │ ├── SendInputApp.vcxproj.filters │ ├── resource.h │ ├── small.ico │ ├── stdafx.cpp │ ├── stdafx.h │ └── targetver.h └── common │ ├── SendInput.cpp │ ├── SendInput.h │ ├── pch.cpp │ └── pch.h ├── SimpleWinRTComponentExample ├── CSharpClient │ ├── App.xaml │ ├── App.xaml.cs │ ├── Assets │ │ ├── LockScreenLogo.scale-200.png │ │ ├── SplashScreen.scale-200.png │ │ ├── Square150x150Logo.scale-200.png │ │ ├── Square44x44Logo.scale-200.png │ │ ├── Square44x44Logo.targetsize-24_altform-unplated.png │ │ ├── StoreLogo.png │ │ └── Wide310x150Logo.scale-200.png │ ├── CSharpClient.csproj │ ├── CSharpClient_TemporaryKey.pfx │ ├── MainPage.xaml │ ├── MainPage.xaml.cs │ ├── Package.appxmanifest │ ├── Properties │ │ ├── AssemblyInfo.cs │ │ └── Default.rd.xml │ └── project.json ├── CppClient │ ├── App.xaml │ ├── App.xaml.cpp │ ├── App.xaml.h │ ├── Assets │ │ ├── LockScreenLogo.scale-200.png │ │ ├── SplashScreen.scale-200.png │ │ ├── Square150x150Logo.scale-200.png │ │ ├── Square44x44Logo.scale-200.png │ │ ├── Square44x44Logo.targetsize-24_altform-unplated.png │ │ ├── StoreLogo.png │ │ └── Wide310x150Logo.scale-200.png │ ├── CppClient.vcxproj │ ├── CppClient.vcxproj.filters │ ├── CppClient_TemporaryKey.pfx │ ├── MainPage.xaml │ ├── MainPage.xaml.cpp │ ├── MainPage.xaml.h │ ├── Package.appxmanifest │ ├── pch.cpp │ └── pch.h ├── JSClient │ ├── JSClient.jsproj │ ├── JSClient_TemporaryKey.pfx │ ├── css │ │ └── default.css │ ├── images │ │ ├── LockScreenLogo.scale-200.png │ │ ├── SplashScreen.scale-200.png │ │ ├── Square150x150Logo.scale-200.png │ │ ├── Square44x44Logo.scale-200.png │ │ ├── Square44x44Logo.targetsize-24_altform-unplated.png │ │ ├── StoreLogo.png │ │ └── Wide310x150Logo.scale-200.png │ ├── index.html │ ├── js │ │ └── main.js │ ├── lib │ │ └── winjs-4.0.1 │ │ │ ├── css │ │ │ ├── ui-dark.css │ │ │ └── ui-light.css │ │ │ ├── fonts │ │ │ └── Symbols.ttf │ │ │ └── js │ │ │ ├── base.js │ │ │ └── ui.js │ └── package.appxmanifest ├── SimpleWinRTComponentExample.sln └── WinRTComponent │ ├── Class1.cpp │ ├── Class1.h │ ├── WinRTComponent.vcxproj │ ├── WinRTComponent.vcxproj.filters │ ├── pch.cpp │ └── pch.h ├── SpeechTest ├── SpeechTest.sln └── SpeechTest │ ├── AppView.cpp │ ├── AppView.h │ ├── Assets │ ├── LockScreenLogo.scale-200.png │ ├── SplashScreen.scale-200.png │ ├── Square150x150Logo.scale-200.png │ ├── Square44x44Logo.scale-200.png │ ├── Square44x44Logo.targetsize-24_altform-unplated.png │ ├── StoreLogo.png │ └── Wide310x150Logo.scale-200.png │ ├── Common │ ├── CameraResources.cpp │ ├── CameraResources.h │ ├── DeviceResources.cpp │ ├── DeviceResources.h │ ├── DirectXHelper.h │ └── StepTimer.h │ ├── Content │ ├── AudioCapturePermissions.cpp │ ├── AudioCapturePermissions.h │ ├── GeometryShader.hlsl │ ├── PixelShader.hlsl │ ├── ShaderStructures.h │ ├── SpatialInputHandler.cpp │ ├── SpatialInputHandler.h │ ├── SpeechInput.cpp │ ├── SpeechInput.h │ ├── SpinningCubeRenderer.cpp │ ├── SpinningCubeRenderer.h │ ├── VPRTVertexShader.hlsl │ ├── VertexShader.hlsl │ └── VertexShaderShared.hlsl │ ├── Package.appxmanifest │ ├── SpeechTest.vcxproj │ ├── SpeechTest.vcxproj.filters │ ├── SpeechTestMain.cpp │ ├── SpeechTestMain.h │ ├── SpeechTest_TemporaryKey.pfx │ ├── pch.cpp │ └── pch.h ├── SubNet ├── SubNet.sln └── SubNet │ ├── App.xaml │ ├── App.xaml.cpp │ ├── App.xaml.h │ ├── Assets │ ├── LockScreenLogo.scale-200.png │ ├── SplashScreen.scale-200.png │ ├── Square150x150Logo.scale-200.png │ ├── Square44x44Logo.scale-200.png │ ├── Square44x44Logo.targetsize-24_altform-unplated.png │ ├── StoreLogo.png │ └── Wide310x150Logo.scale-200.png │ ├── MainPage.xaml │ ├── MainPage.xaml.cpp │ ├── MainPage.xaml.h │ ├── Package.appxmanifest │ ├── SubNet.vcxproj │ ├── SubNet.vcxproj.filters │ ├── SubNet_TemporaryKey.pfx │ ├── pch.cpp │ └── pch.h ├── TestHMD ├── .gitignore ├── README.md ├── TestHMD.sln ├── TestHMD │ ├── TestHMD.cpp │ ├── TestHMD.vcxproj │ ├── TestHMD.vcxproj.filters │ ├── stdafx.cpp │ ├── stdafx.h │ └── targetver.h └── TestHMDApp │ ├── AppView.cpp │ ├── AppView.h │ ├── Assets │ ├── LockScreenLogo.scale-200.png │ ├── SplashScreen.scale-200.png │ ├── Square150x150Logo.scale-200.png │ ├── Square44x44Logo.scale-200.png │ ├── Square44x44Logo.targetsize-24_altform-unplated.png │ ├── StoreLogo.png │ └── Wide310x150Logo.scale-200.png │ ├── Common │ ├── CameraResources.cpp │ ├── CameraResources.h │ ├── DeviceResources.cpp │ ├── DeviceResources.h │ ├── DirectXHelper.h │ └── StepTimer.h │ ├── Content │ ├── GeometryShader.hlsl │ ├── PixelShader.hlsl │ ├── ShaderStructures.h │ ├── SpatialInputHandler.cpp │ ├── SpatialInputHandler.h │ ├── SpinningCubeRenderer.cpp │ ├── SpinningCubeRenderer.h │ ├── VPRTVertexShader.hlsl │ ├── VertexShader.hlsl │ └── VertexShaderShared.hlsl │ ├── Package.appxmanifest │ ├── TestHMDApp.vcxproj │ ├── TestHMDApp.vcxproj.filters │ ├── TestHMDAppMain.cpp │ ├── TestHMDAppMain.h │ ├── TestHMDApp_TemporaryKey.pfx │ ├── pch.cpp │ └── pch.h ├── WebViewCapture └── WebViewCapture │ ├── WebViewCapture.sln │ └── WebViewCapture │ ├── App.xaml │ ├── App.xaml.cpp │ ├── App.xaml.h │ ├── Assets │ ├── LockScreenLogo.scale-200.png │ ├── SplashScreen.scale-200.png │ ├── Square150x150Logo.scale-200.png │ ├── Square44x44Logo.scale-200.png │ ├── Square44x44Logo.targetsize-24_altform-unplated.png │ ├── StoreLogo.png │ └── Wide310x150Logo.scale-200.png │ ├── MainPage.xaml │ ├── MainPage.xaml.cpp │ ├── MainPage.xaml.h │ ├── Package.appxmanifest │ ├── SecondaryPage.xaml │ ├── SecondaryPage.xaml.cpp │ ├── SecondaryPage.xaml.h │ ├── StepTimer.h │ ├── WebViewCapture.vcxproj │ ├── WebViewCapture.vcxproj.filters │ ├── WebViewCapture_TemporaryKey.pfx │ ├── pch.cpp │ └── pch.h ├── WebViewExample ├── README.md ├── WebViewExample.sln ├── WebViewExample │ ├── App.xaml │ ├── App.xaml.cpp │ ├── App.xaml.h │ ├── Assets │ │ ├── LockScreenLogo.scale-200.png │ │ ├── SplashScreen.scale-200.png │ │ ├── Square150x150Logo.scale-200.png │ │ ├── Square44x44Logo.scale-200.png │ │ ├── Square44x44Logo.targetsize-24_altform-unplated.png │ │ ├── StoreLogo.png │ │ ├── Wide310x150Logo.scale-200.png │ │ └── index.html │ ├── MainPage.xaml │ ├── MainPage.xaml.cpp │ ├── MainPage.xaml.h │ ├── Package.appxmanifest │ ├── WebViewExample.vcxproj │ ├── WebViewExample.vcxproj.filters │ ├── WebViewExample_TemporaryKey.pfx │ ├── pch.cpp │ └── pch.h └── WindowsRuntimeComponent1 │ ├── Class1.cpp │ ├── Class1.h │ ├── WindowsRuntimeComponent1.vcxproj │ ├── WindowsRuntimeComponent1.vcxproj.filters │ ├── pch.cpp │ └── pch.h ├── WinRTComponentExample ├── CS_Client │ ├── App.xaml │ ├── App.xaml.cs │ ├── Assets │ │ ├── LockScreenLogo.scale-200.png │ │ ├── SplashScreen.scale-200.png │ │ ├── Square150x150Logo.scale-200.png │ │ ├── Square44x44Logo.scale-200.png │ │ ├── Square44x44Logo.targetsize-24_altform-unplated.png │ │ ├── StoreLogo.png │ │ └── Wide310x150Logo.scale-200.png │ ├── CS_Client.csproj │ ├── CS_Client_TemporaryKey.pfx │ ├── MainPage.xaml │ ├── MainPage.xaml.cs │ ├── Package.appxmanifest │ ├── Properties │ │ ├── AssemblyInfo.cs │ │ └── Default.rd.xml │ └── project.json ├── JS_Client │ ├── JS_Client.jsproj │ ├── JS_Client_TemporaryKey.pfx │ ├── css │ │ └── default.css │ ├── images │ │ ├── LockScreenLogo.scale-200.png │ │ ├── SplashScreen.scale-200.png │ │ ├── Square150x150Logo.scale-200.png │ │ ├── Square44x44Logo.scale-200.png │ │ ├── Square44x44Logo.targetsize-24_altform-unplated.png │ │ ├── StoreLogo.png │ │ └── Wide310x150Logo.scale-200.png │ ├── index.html │ ├── js │ │ └── main.js │ ├── lib │ │ └── winjs-4.0.1 │ │ │ ├── css │ │ │ ├── ui-dark.css │ │ │ └── ui-light.css │ │ │ ├── fonts │ │ │ └── Symbols.ttf │ │ │ └── js │ │ │ ├── base.js │ │ │ └── ui.js │ └── package.appxmanifest ├── WinRTComponentExample.sln └── WinRT_CPP │ ├── Class1.cpp │ ├── Class1.h │ ├── WinRT_CPP.vcxproj │ ├── WinRT_CPP.vcxproj.filters │ ├── pch.cpp │ └── pch.h ├── XAML SwapChainPanel DirectX interop sample ├── C# and C++ │ ├── DirectXPanels │ │ ├── D2DPanel.cpp │ │ ├── D2DPanel.h │ │ ├── D3DPanel.cpp │ │ ├── D3DPanel.h │ │ ├── DirectXHelper.h │ │ ├── DirectXPanelBase.cpp │ │ ├── DirectXPanelBase.h │ │ ├── DirectXPanels.vcxproj │ │ ├── DirectXPanels.vcxproj.filters │ │ ├── DrawingPanel.cpp │ │ ├── DrawingPanel.h │ │ ├── HighlighterPanel.cpp │ │ ├── HighlighterPanel.h │ │ ├── ShaderStructures.h │ │ ├── SimplePixelShader.hlsl │ │ ├── SimpleVertexShader.hlsl │ │ ├── StepTimer.h │ │ ├── UIAD2DPanel.cpp │ │ ├── UIAD2DPanel.h │ │ ├── pch.cpp │ │ └── pch.h │ ├── SwapChainPanel.sln │ └── UWPSwapChainPanel │ │ ├── App.xaml │ │ ├── App.xaml.cs │ │ ├── Assets │ │ ├── LockScreenLogo.scale-200.png │ │ ├── ScaledImage.png │ │ ├── SplashScreen.scale-200.png │ │ ├── Square150x150Logo.scale-200.png │ │ ├── Square44x44Logo.scale-200.png │ │ ├── Square44x44Logo.targetsize-24_altform-unplated.png │ │ ├── StoreLogo.png │ │ ├── Wide310x150Logo.scale-200.png │ │ ├── microsoft-sdk.png │ │ ├── placeholder-sdk.png │ │ └── windows-sdk.png │ │ ├── Common │ │ ├── BindableBase.cs │ │ ├── LayoutAwarePage.cs │ │ └── StandardStyles.xaml │ │ ├── Constants.cs │ │ ├── Converters │ │ ├── BrushConverter.cs │ │ └── ReverseBooleanConverter.cs │ │ ├── MainPage.xaml │ │ ├── MainPage.xaml.cs │ │ ├── Model │ │ └── DrawingAttributes.cs │ │ ├── Package.appxmanifest │ │ ├── PaletteControl.xaml │ │ ├── PaletteControl.xaml.cs │ │ ├── Properties │ │ ├── AssemblyInfo.cs │ │ └── Default.rd.xml │ │ ├── Scenario1.xaml │ │ ├── Scenario1.xaml.cs │ │ ├── Scenario2.xaml │ │ ├── Scenario2.xaml.cs │ │ ├── Scenario3.xaml │ │ ├── Scenario3.xaml.cs │ │ ├── Scenario4.xaml │ │ ├── Scenario4.xaml.cs │ │ ├── Scenario5.xaml │ │ ├── Scenario5.xaml.cs │ │ ├── UWPSwapChainPanel.csproj │ │ └── sample-utils │ │ ├── SampleTemplateStyles.xaml │ │ └── SuspensionManager.cs ├── README.md ├── description.html ├── description │ ├── 9d0720cf-bf50-484c-bf6c-77cf57a10f7cCombined.css │ ├── Brand.css │ ├── Combined.css │ ├── Galleries.css │ ├── Layout.css │ ├── f1d4cd5b-ee0e-41ab-9a4f-a8fc36768c28Brand.css │ ├── iframedescription.css │ └── offline.js └── license.rtf ├── cout ├── App.xaml ├── App.xaml.cpp ├── App.xaml.h ├── Assets │ ├── LockScreenLogo.scale-200.png │ ├── SplashScreen.scale-200.png │ ├── Square150x150Logo.scale-200.png │ ├── Square44x44Logo.scale-200.png │ ├── Square44x44Logo.targetsize-24_altform-unplated.png │ ├── StoreLogo.png │ └── Wide310x150Logo.scale-200.png ├── Dll1 │ ├── Dll1.cpp │ ├── Dll1.h │ ├── Dll1.vcxproj │ ├── Dll1.vcxproj.filters │ ├── dllmain.cpp │ ├── pch.cpp │ ├── pch.h │ └── targetver.h ├── Lib1 │ ├── Lib1.cpp │ ├── Lib1.h │ ├── Lib1.vcxproj │ ├── Lib1.vcxproj.filters │ ├── pch.cpp │ ├── pch.h │ └── targetver.h ├── MainPage.xaml ├── MainPage.xaml.cpp ├── MainPage.xaml.h ├── OutputDebugStringBuf.h ├── Package.appxmanifest ├── README.md ├── WindowsRuntimeComponent1 │ ├── Class1.cpp │ ├── Class1.h │ ├── WindowsRuntimeComponent1.vcxproj │ ├── WindowsRuntimeComponent1.vcxproj.filters │ ├── pch.cpp │ └── pch.h ├── cout.sln ├── cout.vcxproj ├── cout.vcxproj.filters ├── cout_TemporaryKey.pfx ├── pch.cpp └── pch.h ├── uwp-cpp-cx.pptx └── winrt-components.pptx /AngleMR/AngleMR/AngleMR_TemporaryKey.pfx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/AngleMR/AngleMR/AngleMR_TemporaryKey.pfx -------------------------------------------------------------------------------- /AngleMR/AngleMR/Assets/LockScreenLogo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/AngleMR/AngleMR/Assets/LockScreenLogo.scale-200.png -------------------------------------------------------------------------------- /AngleMR/AngleMR/Assets/SplashScreen.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/AngleMR/AngleMR/Assets/SplashScreen.scale-200.png -------------------------------------------------------------------------------- /AngleMR/AngleMR/Assets/Square150x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/AngleMR/AngleMR/Assets/Square150x150Logo.scale-200.png -------------------------------------------------------------------------------- /AngleMR/AngleMR/Assets/Square44x44Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/AngleMR/AngleMR/Assets/Square44x44Logo.scale-200.png -------------------------------------------------------------------------------- /AngleMR/AngleMR/Assets/Square44x44Logo.targetsize-24_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/AngleMR/AngleMR/Assets/Square44x44Logo.targetsize-24_altform-unplated.png -------------------------------------------------------------------------------- /AngleMR/AngleMR/Assets/StoreLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/AngleMR/AngleMR/Assets/StoreLogo.png -------------------------------------------------------------------------------- /AngleMR/AngleMR/Assets/Wide310x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/AngleMR/AngleMR/Assets/Wide310x150Logo.scale-200.png -------------------------------------------------------------------------------- /AngleMR/AngleMR/Content/GeometryShader.hlsl: -------------------------------------------------------------------------------- 1 | // Per-vertex data from the vertex shader. 2 | struct GeometryShaderInput 3 | { 4 | min16float4 pos : SV_POSITION; 5 | min16float3 color : COLOR0; 6 | uint instId : TEXCOORD0; 7 | }; 8 | 9 | // Per-vertex data passed to the rasterizer. 10 | struct GeometryShaderOutput 11 | { 12 | min16float4 pos : SV_POSITION; 13 | min16float3 color : COLOR0; 14 | uint rtvId : SV_RenderTargetArrayIndex; 15 | }; 16 | 17 | // This geometry shader is a pass-through that leaves the geometry unmodified 18 | // and sets the render target array index. 19 | [maxvertexcount(3)] 20 | void main(triangle GeometryShaderInput input[3], inout TriangleStream outStream) 21 | { 22 | GeometryShaderOutput output; 23 | [unroll(3)] 24 | for (int i = 0; i < 3; ++i) 25 | { 26 | output.pos = input[i].pos; 27 | output.color = input[i].color; 28 | output.rtvId = input[i].instId; 29 | outStream.Append(output); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /AngleMR/AngleMR/Content/PixelShader.hlsl: -------------------------------------------------------------------------------- 1 | // Per-pixel color data passed through the pixel shader. 2 | struct PixelShaderInput 3 | { 4 | min16float4 pos : SV_POSITION; 5 | min16float3 color : COLOR0; 6 | }; 7 | 8 | // The pixel shader passes through the color data. The color data from 9 | // is interpolated and assigned to a pixel at the rasterization step. 10 | min16float4 main(PixelShaderInput input) : SV_TARGET 11 | { 12 | return min16float4(input.color, 1.0f); 13 | } 14 | -------------------------------------------------------------------------------- /AngleMR/AngleMR/Content/ShaderStructures.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | namespace AngleMR 4 | { 5 | // Constant buffer used to send hologram position transform to the shader pipeline. 6 | struct ModelConstantBuffer 7 | { 8 | DirectX::XMFLOAT4X4 model; 9 | }; 10 | 11 | // Assert that the constant buffer remains 16-byte aligned (best practice). 12 | static_assert((sizeof(ModelConstantBuffer) % (sizeof(float) * 4)) == 0, "Model constant buffer size must be 16-byte aligned (16 bytes is the length of four floats)."); 13 | 14 | 15 | // Used to send per-vertex data to the vertex shader. 16 | struct VertexPositionColor 17 | { 18 | DirectX::XMFLOAT3 pos; 19 | DirectX::XMFLOAT3 color; 20 | }; 21 | } -------------------------------------------------------------------------------- /AngleMR/AngleMR/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /AngleMR/AngleMR/pch.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // pch.cpp 3 | // Include the standard header and generate the precompiled header. 4 | // 5 | 6 | #include "pch.h" 7 | -------------------------------------------------------------------------------- /AngleMR/AngleMR/pch.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include 14 | #include 15 | 16 | // Enable function definitions in the GL headers below 17 | #define GL_GLEXT_PROTOTYPES 18 | 19 | // OpenGL ES includes 20 | #include 21 | #include 22 | #include 23 | #include 24 | 25 | // EGL includes 26 | #include 27 | #include 28 | #include 29 | 30 | // ANGLE include for Windows Store 31 | #include 32 | 33 | #define glRenderbufferStorageMultisample glRenderbufferStorageMultisampleANGLE 34 | #define glTexImage2DMultisample glTexStorage2DMultisample 35 | #define GL_MULTISAMPLE GL_MULTISAMPLE_EXT 36 | 37 | 38 | -------------------------------------------------------------------------------- /HelloWorld/App.xaml: -------------------------------------------------------------------------------- 1 |  7 | 8 | 9 | -------------------------------------------------------------------------------- /HelloWorld/App.xaml.h: -------------------------------------------------------------------------------- 1 | // 2 | // App.xaml.h 3 | // Declaration of the App class. 4 | // 5 | 6 | #pragma once 7 | 8 | #include "App.g.h" 9 | 10 | namespace HelloWorld 11 | { 12 | /// 13 | /// Provides application-specific behavior to supplement the default Application class. 14 | /// 15 | ref class App sealed 16 | { 17 | protected: 18 | virtual void OnLaunched(Windows::ApplicationModel::Activation::LaunchActivatedEventArgs^ e) override; 19 | 20 | internal: 21 | App(); 22 | 23 | private: 24 | void OnSuspending(Platform::Object^ sender, Windows::ApplicationModel::SuspendingEventArgs^ e); 25 | void OnNavigationFailed(Platform::Object ^sender, Windows::UI::Xaml::Navigation::NavigationFailedEventArgs ^e); 26 | }; 27 | } 28 | -------------------------------------------------------------------------------- /HelloWorld/Assets/LockScreenLogo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/HelloWorld/Assets/LockScreenLogo.scale-200.png -------------------------------------------------------------------------------- /HelloWorld/Assets/SplashScreen.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/HelloWorld/Assets/SplashScreen.scale-200.png -------------------------------------------------------------------------------- /HelloWorld/Assets/Square150x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/HelloWorld/Assets/Square150x150Logo.scale-200.png -------------------------------------------------------------------------------- /HelloWorld/Assets/Square44x44Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/HelloWorld/Assets/Square44x44Logo.scale-200.png -------------------------------------------------------------------------------- /HelloWorld/Assets/Square44x44Logo.targetsize-24_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/HelloWorld/Assets/Square44x44Logo.targetsize-24_altform-unplated.png -------------------------------------------------------------------------------- /HelloWorld/Assets/StoreLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/HelloWorld/Assets/StoreLogo.png -------------------------------------------------------------------------------- /HelloWorld/Assets/Wide310x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/HelloWorld/Assets/Wide310x150Logo.scale-200.png -------------------------------------------------------------------------------- /HelloWorld/HelloWorld_TemporaryKey.pfx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/HelloWorld/HelloWorld_TemporaryKey.pfx -------------------------------------------------------------------------------- /HelloWorld/pch.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // pch.cpp 3 | // Include the standard header and generate the precompiled header. 4 | // 5 | 6 | #include "pch.h" 7 | -------------------------------------------------------------------------------- /HelloWorld/pch.h: -------------------------------------------------------------------------------- 1 | // 2 | // pch.h 3 | // Header for standard system include files. 4 | // 5 | 6 | #pragma once 7 | 8 | #include 9 | #include 10 | 11 | #include "App.xaml.h" 12 | -------------------------------------------------------------------------------- /HolographicWebView/HolographicWebView/App.xaml: -------------------------------------------------------------------------------- 1 |  7 | 8 | 9 | -------------------------------------------------------------------------------- /HolographicWebView/HolographicWebView/App.xaml.h: -------------------------------------------------------------------------------- 1 | // 2 | // App.xaml.h 3 | // Declaration of the App class. 4 | // 5 | 6 | #pragma once 7 | 8 | #include "App.g.h" 9 | 10 | namespace HolographicWebView 11 | { 12 | /// 13 | /// Provides application-specific behavior to supplement the default Application class. 14 | /// 15 | ref class App sealed 16 | { 17 | protected: 18 | virtual void OnLaunched(Windows::ApplicationModel::Activation::LaunchActivatedEventArgs^ e) override; 19 | 20 | internal: 21 | App(); 22 | 23 | private: 24 | void OnSuspending(Platform::Object^ sender, Windows::ApplicationModel::SuspendingEventArgs^ e); 25 | void OnNavigationFailed(Platform::Object ^sender, Windows::UI::Xaml::Navigation::NavigationFailedEventArgs ^e); 26 | 27 | Platform::Agile m_holographicView; 28 | Platform::Agile m_xamlView; 29 | int m_xamlViewId; 30 | int m_holographicViewId; 31 | }; 32 | } 33 | -------------------------------------------------------------------------------- /HolographicWebView/HolographicWebView/Assets/LockScreenLogo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/HolographicWebView/HolographicWebView/Assets/LockScreenLogo.scale-200.png -------------------------------------------------------------------------------- /HolographicWebView/HolographicWebView/Assets/SplashScreen.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/HolographicWebView/HolographicWebView/Assets/SplashScreen.scale-200.png -------------------------------------------------------------------------------- /HolographicWebView/HolographicWebView/Assets/Square150x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/HolographicWebView/HolographicWebView/Assets/Square150x150Logo.scale-200.png -------------------------------------------------------------------------------- /HolographicWebView/HolographicWebView/Assets/Square44x44Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/HolographicWebView/HolographicWebView/Assets/Square44x44Logo.scale-200.png -------------------------------------------------------------------------------- /HolographicWebView/HolographicWebView/Assets/Square44x44Logo.targetsize-24_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/HolographicWebView/HolographicWebView/Assets/Square44x44Logo.targetsize-24_altform-unplated.png -------------------------------------------------------------------------------- /HolographicWebView/HolographicWebView/Assets/StoreLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/HolographicWebView/HolographicWebView/Assets/StoreLogo.png -------------------------------------------------------------------------------- /HolographicWebView/HolographicWebView/Assets/Wide310x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/HolographicWebView/HolographicWebView/Assets/Wide310x150Logo.scale-200.png -------------------------------------------------------------------------------- /HolographicWebView/HolographicWebView/Assets/edge.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/HolographicWebView/HolographicWebView/Assets/edge.png -------------------------------------------------------------------------------- /HolographicWebView/HolographicWebView/Assets/holoHello.dds: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/HolographicWebView/HolographicWebView/Assets/holoHello.dds -------------------------------------------------------------------------------- /HolographicWebView/HolographicWebView/HolographicView/Content/FullscreenQuadVertexShader.hlsl: -------------------------------------------------------------------------------- 1 | //********************************************************* 2 | // 3 | // Copyright (c) Microsoft. All rights reserved. 4 | // This code is licensed under the MIT License (MIT). 5 | // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF 6 | // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY 7 | // IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR 8 | // PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT. 9 | // 10 | //********************************************************* 11 | 12 | struct VertexShaderInput 13 | { 14 | min16float2 pos : POSITION; 15 | }; 16 | 17 | min16float4 main(VertexShaderInput input) : SV_POSITION 18 | { 19 | return min16float4(input.pos, 0.5f, 1.0f); 20 | } -------------------------------------------------------------------------------- /HolographicWebView/HolographicWebView/HolographicView/Content/PixelShader.hlsl: -------------------------------------------------------------------------------- 1 | //********************************************************* 2 | // 3 | // Copyright (c) Microsoft. All rights reserved. 4 | // This code is licensed under the MIT License (MIT). 5 | // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF 6 | // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY 7 | // IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR 8 | // PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT. 9 | // 10 | //********************************************************* 11 | 12 | // Per-pixel color data passed through to the pixel shader. 13 | struct PixelShaderInput 14 | { 15 | min16float4 pos : SV_POSITION; 16 | min16float3 color : COLOR0; 17 | min16float2 texCoord : TEXCOORD1; 18 | }; 19 | 20 | Texture2D tex : t0; 21 | SamplerState samp : s0; 22 | 23 | // The pixel shader renders a color value based on an input texture and texture coord 24 | min16float4 main(PixelShaderInput input) : SV_TARGET 25 | { 26 | // Read both distance function values. 27 | min16float4 textureValue = tex.Sample(samp, input.texCoord); 28 | 29 | // Apply the result. 30 | return textureValue; 31 | } -------------------------------------------------------------------------------- /HolographicWebView/HolographicWebView/HolographicView/Content/TexturePixelShader.hlsl: -------------------------------------------------------------------------------- 1 | //********************************************************* 2 | // 3 | // Copyright (c) Microsoft. All rights reserved. 4 | // This code is licensed under the MIT License (MIT). 5 | // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF 6 | // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY 7 | // IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR 8 | // PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT. 9 | // 10 | //********************************************************* 11 | 12 | // Per-pixel color data passed through the pixel shader. 13 | struct PixelShaderInput 14 | { 15 | min16float4 pos : SV_POSITION; 16 | min16float3 color : COLOR0; 17 | min16float2 texCoord : TEXCOORD1; 18 | }; 19 | 20 | Texture2D tex : t0; 21 | SamplerState samp : s0; 22 | 23 | // The pixel shader renders texture, which may be modified using a color value. 24 | min16float4 main(PixelShaderInput input) : SV_TARGET 25 | { 26 | min16float3 textureValue = (min16float3)(tex.Sample(samp, input.texCoord)); 27 | min16float3 multiplier = input.color; 28 | return min16float4(textureValue * multiplier, 1.f); 29 | } 30 | -------------------------------------------------------------------------------- /HolographicWebView/HolographicWebView/HolographicView/pch.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // pch.cpp 3 | // Include the standard header and generate the precompiled header. 4 | // 5 | 6 | #include "pch.h" 7 | -------------------------------------------------------------------------------- /HolographicWebView/HolographicWebView/HolographicView/pch.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | 14 | -------------------------------------------------------------------------------- /HolographicWebView/HolographicWebView/HolographicWebView_TemporaryKey.pfx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/HolographicWebView/HolographicWebView/HolographicWebView_TemporaryKey.pfx -------------------------------------------------------------------------------- /HolographicWebView/HolographicWebView/MainPage.xaml: -------------------------------------------------------------------------------- 1 |  9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /HolographicWebView/HolographicWebView/pch.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // pch.cpp 3 | // Include the standard header and generate the precompiled header. 4 | // 5 | 6 | #include "pch.h" 7 | -------------------------------------------------------------------------------- /HolographicWebView/HolographicWebView/pch.h: -------------------------------------------------------------------------------- 1 | // 2 | // pch.h 3 | // Header for standard system include files. 4 | // 5 | 6 | #pragma once 7 | 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | #include 20 | 21 | #include "App.xaml.h" 22 | -------------------------------------------------------------------------------- /MRAppServiceDemo/ConsoleApplication1/stdafx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // $safeprojectname$.pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "stdafx.h" 6 | 7 | // TODO: reference any additional headers you need in STDAFX.H 8 | // and not in this file 9 | -------------------------------------------------------------------------------- /MRAppServiceDemo/ConsoleApplication1/stdafx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : include file for standard system include files, 2 | // or project specific include files that are used frequently, but 3 | // are changed infrequently 4 | // 5 | 6 | #pragma once 7 | 8 | #include "targetver.h" 9 | 10 | #include 11 | #include 12 | 13 | 14 | 15 | // TODO: reference additional headers your program requires here 16 | -------------------------------------------------------------------------------- /MRAppServiceDemo/ConsoleApplication1/targetver.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | // Including SDKDDKVer.h defines the highest available Windows platform. 4 | 5 | // If you wish to build your application for a previous Windows platform, include WinSDKVer.h and 6 | // set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. 7 | 8 | #include 9 | -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppService/MRAppService.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | de0d9c82-b279-44c4-9f80-b1f87e504d77 6 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tga;tiff;tif;png;wav;mfcribbon-ms 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppService/pch.cpp: -------------------------------------------------------------------------------- 1 | #include "pch.h" 2 | -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppService/pch.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/Assets/LargeTile.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/MRAppServiceDemo/Assets/LargeTile.scale-100.png -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/Assets/LargeTile.scale-125.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/MRAppServiceDemo/Assets/LargeTile.scale-125.png -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/Assets/LargeTile.scale-150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/MRAppServiceDemo/Assets/LargeTile.scale-150.png -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/Assets/LargeTile.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/MRAppServiceDemo/Assets/LargeTile.scale-200.png -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/Assets/LargeTile.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/MRAppServiceDemo/Assets/LargeTile.scale-400.png -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/Assets/LockScreenLogo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/MRAppServiceDemo/Assets/LockScreenLogo.scale-200.png -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/Assets/SmallTile.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/MRAppServiceDemo/Assets/SmallTile.scale-100.png -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/Assets/SmallTile.scale-125.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/MRAppServiceDemo/Assets/SmallTile.scale-125.png -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/Assets/SmallTile.scale-150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/MRAppServiceDemo/Assets/SmallTile.scale-150.png -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/Assets/SmallTile.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/MRAppServiceDemo/Assets/SmallTile.scale-200.png -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/Assets/SmallTile.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/MRAppServiceDemo/Assets/SmallTile.scale-400.png -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/Assets/SplashScreen.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/MRAppServiceDemo/Assets/SplashScreen.scale-100.png -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/Assets/SplashScreen.scale-125.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/MRAppServiceDemo/Assets/SplashScreen.scale-125.png -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/Assets/SplashScreen.scale-150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/MRAppServiceDemo/Assets/SplashScreen.scale-150.png -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/Assets/SplashScreen.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/MRAppServiceDemo/Assets/SplashScreen.scale-200.png -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/Assets/SplashScreen.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/MRAppServiceDemo/Assets/SplashScreen.scale-400.png -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/Assets/Square150x150Logo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/MRAppServiceDemo/Assets/Square150x150Logo.scale-100.png -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/Assets/Square150x150Logo.scale-125.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/MRAppServiceDemo/Assets/Square150x150Logo.scale-125.png -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/Assets/Square150x150Logo.scale-150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/MRAppServiceDemo/Assets/Square150x150Logo.scale-150.png -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/Assets/Square150x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/MRAppServiceDemo/Assets/Square150x150Logo.scale-200.png -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/Assets/Square150x150Logo.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/MRAppServiceDemo/Assets/Square150x150Logo.scale-400.png -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/Assets/Square44x44Logo.altform-unplated_targetsize-16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/MRAppServiceDemo/Assets/Square44x44Logo.altform-unplated_targetsize-16.png -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/Assets/Square44x44Logo.altform-unplated_targetsize-256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/MRAppServiceDemo/Assets/Square44x44Logo.altform-unplated_targetsize-256.png -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/Assets/Square44x44Logo.altform-unplated_targetsize-32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/MRAppServiceDemo/Assets/Square44x44Logo.altform-unplated_targetsize-32.png -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/Assets/Square44x44Logo.altform-unplated_targetsize-48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/MRAppServiceDemo/Assets/Square44x44Logo.altform-unplated_targetsize-48.png -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/Assets/Square44x44Logo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/MRAppServiceDemo/Assets/Square44x44Logo.scale-100.png -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/Assets/Square44x44Logo.scale-125.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/MRAppServiceDemo/Assets/Square44x44Logo.scale-125.png -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/Assets/Square44x44Logo.scale-150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/MRAppServiceDemo/Assets/Square44x44Logo.scale-150.png -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/Assets/Square44x44Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/MRAppServiceDemo/Assets/Square44x44Logo.scale-200.png -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/Assets/Square44x44Logo.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/MRAppServiceDemo/Assets/Square44x44Logo.scale-400.png -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/Assets/Square44x44Logo.targetsize-16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/MRAppServiceDemo/Assets/Square44x44Logo.targetsize-16.png -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/Assets/Square44x44Logo.targetsize-24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/MRAppServiceDemo/Assets/Square44x44Logo.targetsize-24.png -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/Assets/Square44x44Logo.targetsize-24_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/MRAppServiceDemo/Assets/Square44x44Logo.targetsize-24_altform-unplated.png -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/Assets/Square44x44Logo.targetsize-256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/MRAppServiceDemo/Assets/Square44x44Logo.targetsize-256.png -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/Assets/Square44x44Logo.targetsize-32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/MRAppServiceDemo/Assets/Square44x44Logo.targetsize-32.png -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/Assets/Square44x44Logo.targetsize-48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/MRAppServiceDemo/Assets/Square44x44Logo.targetsize-48.png -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/Assets/StoreLogo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/MRAppServiceDemo/Assets/StoreLogo.scale-100.png -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/Assets/StoreLogo.scale-125.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/MRAppServiceDemo/Assets/StoreLogo.scale-125.png -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/Assets/StoreLogo.scale-150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/MRAppServiceDemo/Assets/StoreLogo.scale-150.png -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/Assets/StoreLogo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/MRAppServiceDemo/Assets/StoreLogo.scale-200.png -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/Assets/StoreLogo.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/MRAppServiceDemo/Assets/StoreLogo.scale-400.png -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/Assets/Wide310x150Logo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/MRAppServiceDemo/Assets/Wide310x150Logo.scale-100.png -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/Assets/Wide310x150Logo.scale-125.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/MRAppServiceDemo/Assets/Wide310x150Logo.scale-125.png -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/Assets/Wide310x150Logo.scale-150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/MRAppServiceDemo/Assets/Wide310x150Logo.scale-150.png -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/Assets/Wide310x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/MRAppServiceDemo/Assets/Wide310x150Logo.scale-200.png -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/Assets/Wide310x150Logo.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/MRAppServiceDemo/Assets/Wide310x150Logo.scale-400.png -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/Content/GeometryShader.hlsl: -------------------------------------------------------------------------------- 1 | // Per-vertex data from the vertex shader. 2 | struct GeometryShaderInput 3 | { 4 | min16float4 pos : SV_POSITION; 5 | min16float3 color : COLOR0; 6 | uint instId : TEXCOORD0; 7 | }; 8 | 9 | // Per-vertex data passed to the rasterizer. 10 | struct GeometryShaderOutput 11 | { 12 | min16float4 pos : SV_POSITION; 13 | min16float3 color : COLOR0; 14 | uint rtvId : SV_RenderTargetArrayIndex; 15 | }; 16 | 17 | // This geometry shader is a pass-through that leaves the geometry unmodified 18 | // and sets the render target array index. 19 | [maxvertexcount(3)] 20 | void main(triangle GeometryShaderInput input[3], inout TriangleStream outStream) 21 | { 22 | GeometryShaderOutput output; 23 | [unroll(3)] 24 | for (int i = 0; i < 3; ++i) 25 | { 26 | output.pos = input[i].pos; 27 | output.color = input[i].color; 28 | output.rtvId = input[i].instId; 29 | outStream.Append(output); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/Content/PixelShader.hlsl: -------------------------------------------------------------------------------- 1 | // Per-pixel color data passed through the pixel shader. 2 | struct PixelShaderInput 3 | { 4 | min16float4 pos : SV_POSITION; 5 | min16float3 color : COLOR0; 6 | }; 7 | 8 | // The pixel shader passes through the color data. The color data from 9 | // is interpolated and assigned to a pixel at the rasterization step. 10 | min16float4 main(PixelShaderInput input) : SV_TARGET 11 | { 12 | return min16float4(input.color, 1.0f); 13 | } 14 | -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/Content/ShaderStructures.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | namespace MRAppServiceDemo 4 | { 5 | // Constant buffer used to send hologram position transform to the shader pipeline. 6 | struct ModelConstantBuffer 7 | { 8 | DirectX::XMFLOAT4X4 model; 9 | }; 10 | 11 | // Assert that the constant buffer remains 16-byte aligned (best practice). 12 | static_assert((sizeof(ModelConstantBuffer) % (sizeof(float) * 4)) == 0, "Model constant buffer size must be 16-byte aligned (16 bytes is the length of four floats)."); 13 | 14 | 15 | // Used to send per-vertex data to the vertex shader. 16 | struct VertexPositionColor 17 | { 18 | DirectX::XMFLOAT3 pos; 19 | DirectX::XMFLOAT3 color; 20 | }; 21 | } -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/MRAppServiceDemo_TemporaryKey.pfx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/MRAppServiceDemo/MRAppServiceDemo_TemporaryKey.pfx -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/MRAppServiceDemo/icon.png -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/pch.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // pch.cpp 3 | // Include the standard header and generate the precompiled header. 4 | // 5 | 6 | #include "pch.h" 7 | -------------------------------------------------------------------------------- /MRAppServiceDemo/MRAppServiceDemo/pch.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | 14 | -------------------------------------------------------------------------------- /MRAppServiceDemo/images/distance.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/images/distance.png -------------------------------------------------------------------------------- /MRAppServiceDemo/images/mr-all-apps.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/images/mr-all-apps.png -------------------------------------------------------------------------------- /MRAppServiceDemo/images/mr-uwp-all-apps.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/images/mr-uwp-all-apps.png -------------------------------------------------------------------------------- /MRAppServiceDemo/images/mrportal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/images/mrportal.png -------------------------------------------------------------------------------- /MRAppServiceDemo/images/send.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/images/send.png -------------------------------------------------------------------------------- /MRAppServiceDemo/images/solution.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/images/solution.png -------------------------------------------------------------------------------- /MRAppServiceDemo/images/win32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRAppServiceDemo/images/win32.png -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/Assets/LargeTile.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/MRCentennial/Assets/LargeTile.scale-100.png -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/Assets/LargeTile.scale-125.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/MRCentennial/Assets/LargeTile.scale-125.png -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/Assets/LargeTile.scale-150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/MRCentennial/Assets/LargeTile.scale-150.png -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/Assets/LargeTile.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/MRCentennial/Assets/LargeTile.scale-200.png -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/Assets/LargeTile.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/MRCentennial/Assets/LargeTile.scale-400.png -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/Assets/SmallTile.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/MRCentennial/Assets/SmallTile.scale-100.png -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/Assets/SmallTile.scale-125.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/MRCentennial/Assets/SmallTile.scale-125.png -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/Assets/SmallTile.scale-150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/MRCentennial/Assets/SmallTile.scale-150.png -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/Assets/SmallTile.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/MRCentennial/Assets/SmallTile.scale-200.png -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/Assets/SmallTile.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/MRCentennial/Assets/SmallTile.scale-400.png -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/Assets/SplashScreen.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/MRCentennial/Assets/SplashScreen.scale-100.png -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/Assets/SplashScreen.scale-125.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/MRCentennial/Assets/SplashScreen.scale-125.png -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/Assets/SplashScreen.scale-150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/MRCentennial/Assets/SplashScreen.scale-150.png -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/Assets/SplashScreen.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/MRCentennial/Assets/SplashScreen.scale-200.png -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/Assets/SplashScreen.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/MRCentennial/Assets/SplashScreen.scale-400.png -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/Assets/Square150x150Logo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/MRCentennial/Assets/Square150x150Logo.scale-100.png -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/Assets/Square150x150Logo.scale-125.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/MRCentennial/Assets/Square150x150Logo.scale-125.png -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/Assets/Square150x150Logo.scale-150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/MRCentennial/Assets/Square150x150Logo.scale-150.png -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/Assets/Square150x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/MRCentennial/Assets/Square150x150Logo.scale-200.png -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/Assets/Square150x150Logo.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/MRCentennial/Assets/Square150x150Logo.scale-400.png -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/Assets/Square44x44Logo.altform-unplated_targetsize-16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/MRCentennial/Assets/Square44x44Logo.altform-unplated_targetsize-16.png -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/Assets/Square44x44Logo.altform-unplated_targetsize-24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/MRCentennial/Assets/Square44x44Logo.altform-unplated_targetsize-24.png -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/Assets/Square44x44Logo.altform-unplated_targetsize-256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/MRCentennial/Assets/Square44x44Logo.altform-unplated_targetsize-256.png -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/Assets/Square44x44Logo.altform-unplated_targetsize-32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/MRCentennial/Assets/Square44x44Logo.altform-unplated_targetsize-32.png -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/Assets/Square44x44Logo.altform-unplated_targetsize-48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/MRCentennial/Assets/Square44x44Logo.altform-unplated_targetsize-48.png -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/Assets/Square44x44Logo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/MRCentennial/Assets/Square44x44Logo.scale-100.png -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/Assets/Square44x44Logo.scale-125.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/MRCentennial/Assets/Square44x44Logo.scale-125.png -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/Assets/Square44x44Logo.scale-150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/MRCentennial/Assets/Square44x44Logo.scale-150.png -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/Assets/Square44x44Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/MRCentennial/Assets/Square44x44Logo.scale-200.png -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/Assets/Square44x44Logo.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/MRCentennial/Assets/Square44x44Logo.scale-400.png -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/Assets/Square44x44Logo.targetsize-16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/MRCentennial/Assets/Square44x44Logo.targetsize-16.png -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/Assets/Square44x44Logo.targetsize-24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/MRCentennial/Assets/Square44x44Logo.targetsize-24.png -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/Assets/Square44x44Logo.targetsize-256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/MRCentennial/Assets/Square44x44Logo.targetsize-256.png -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/Assets/Square44x44Logo.targetsize-32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/MRCentennial/Assets/Square44x44Logo.targetsize-32.png -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/Assets/Square44x44Logo.targetsize-48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/MRCentennial/Assets/Square44x44Logo.targetsize-48.png -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/Assets/StoreLogo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/MRCentennial/Assets/StoreLogo.scale-100.png -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/Assets/StoreLogo.scale-125.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/MRCentennial/Assets/StoreLogo.scale-125.png -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/Assets/StoreLogo.scale-150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/MRCentennial/Assets/StoreLogo.scale-150.png -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/Assets/StoreLogo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/MRCentennial/Assets/StoreLogo.scale-200.png -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/Assets/StoreLogo.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/MRCentennial/Assets/StoreLogo.scale-400.png -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/Assets/Wide310x150Logo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/MRCentennial/Assets/Wide310x150Logo.scale-100.png -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/Assets/Wide310x150Logo.scale-125.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/MRCentennial/Assets/Wide310x150Logo.scale-125.png -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/Assets/Wide310x150Logo.scale-150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/MRCentennial/Assets/Wide310x150Logo.scale-150.png -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/Assets/Wide310x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/MRCentennial/Assets/Wide310x150Logo.scale-200.png -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/Assets/Wide310x150Logo.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/MRCentennial/Assets/Wide310x150Logo.scale-400.png -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/Content/FullscreenQuadVertexShader.hlsl: -------------------------------------------------------------------------------- 1 | //********************************************************* 2 | // 3 | // Copyright (c) Microsoft. All rights reserved. 4 | // This code is licensed under the MIT License (MIT). 5 | // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF 6 | // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY 7 | // IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR 8 | // PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT. 9 | // 10 | //********************************************************* 11 | 12 | struct VertexShaderInput 13 | { 14 | min16float2 pos : POSITION; 15 | }; 16 | 17 | min16float4 main(VertexShaderInput input) : SV_POSITION 18 | { 19 | return min16float4(input.pos, 0.5f, 1.0f); 20 | } -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/Content/PixelShader.hlsl: -------------------------------------------------------------------------------- 1 | //********************************************************* 2 | // 3 | // Copyright (c) Microsoft. All rights reserved. 4 | // This code is licensed under the MIT License (MIT). 5 | // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF 6 | // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY 7 | // IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR 8 | // PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT. 9 | // 10 | //********************************************************* 11 | 12 | // Per-pixel color data passed through to the pixel shader. 13 | struct PixelShaderInput 14 | { 15 | min16float4 pos : SV_POSITION; 16 | min16float3 color : COLOR0; 17 | min16float2 texCoord : TEXCOORD1; 18 | }; 19 | 20 | Texture2D tex : t0; 21 | SamplerState samp : s0; 22 | 23 | // The pixel shader renders a color value based on an input texture and texture coord 24 | min16float4 main(PixelShaderInput input) : SV_TARGET 25 | { 26 | // Read both distance function values. 27 | min16float4 textureValue = tex.Sample(samp, input.texCoord); 28 | 29 | // Apply the result. 30 | return textureValue; 31 | } -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/Content/TexturePixelShader.hlsl: -------------------------------------------------------------------------------- 1 | //********************************************************* 2 | // 3 | // Copyright (c) Microsoft. All rights reserved. 4 | // This code is licensed under the MIT License (MIT). 5 | // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF 6 | // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY 7 | // IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR 8 | // PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT. 9 | // 10 | //********************************************************* 11 | 12 | // Per-pixel color data passed through the pixel shader. 13 | struct PixelShaderInput 14 | { 15 | min16float4 pos : SV_POSITION; 16 | min16float3 color : COLOR0; 17 | min16float2 texCoord : TEXCOORD1; 18 | }; 19 | 20 | Texture2D tex : t0; 21 | SamplerState samp : s0; 22 | 23 | // The pixel shader renders texture, which may be modified using a color value. 24 | min16float4 main(PixelShaderInput input) : SV_TARGET 25 | { 26 | min16float3 textureValue = (min16float3)(tex.Sample(samp, input.texCoord)); 27 | min16float3 multiplier = input.color; 28 | return min16float4(textureValue * multiplier, 1.f); 29 | } 30 | -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/MRCentennial_TemporaryKey.pfx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/MRCentennial/MRCentennial_TemporaryKey.pfx -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/MRCentennial/icon.png -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/pch.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // pch.cpp 3 | // Include the standard header and generate the precompiled header. 4 | // 5 | 6 | #include "pch.h" 7 | -------------------------------------------------------------------------------- /MRCentennial/MRCentennial/pch.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | 14 | -------------------------------------------------------------------------------- /MRCentennial/ScreenCapture/ScreenCapture.h: -------------------------------------------------------------------------------- 1 | // ScreenCapture.cpp : Defines the exported functions for the DLL application. 2 | // 3 | 4 | #pragma once 5 | 6 | #if defined(_USRDLL) 7 | #define DllExport __declspec(dllexport) 8 | #else 9 | #define DllExport __declspec(dllimport) 10 | #endif 11 | 12 | DllExport void ScreenCapture_GetScreenSize(int& width, int& height); 13 | DllExport int ScreenCapture_Capture(void* buffer, int width, int height); 14 | -------------------------------------------------------------------------------- /MRCentennial/ScreenCapture/dllmain.cpp: -------------------------------------------------------------------------------- 1 | // dllmain.cpp : Defines the entry point for the DLL application. 2 | #include "stdafx.h" 3 | 4 | BOOL APIENTRY DllMain( HMODULE hModule, 5 | DWORD ul_reason_for_call, 6 | LPVOID lpReserved 7 | ) 8 | { 9 | switch (ul_reason_for_call) 10 | { 11 | case DLL_PROCESS_ATTACH: 12 | case DLL_THREAD_ATTACH: 13 | case DLL_THREAD_DETACH: 14 | case DLL_PROCESS_DETACH: 15 | break; 16 | } 17 | return TRUE; 18 | } 19 | 20 | -------------------------------------------------------------------------------- /MRCentennial/ScreenCapture/stdafx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // $safeprojectname$.pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "stdafx.h" 6 | 7 | // TODO: reference any additional headers you need in STDAFX.H 8 | // and not in this file 9 | -------------------------------------------------------------------------------- /MRCentennial/ScreenCapture/stdafx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : include file for standard system include files, 2 | // or project specific include files that are used frequently, but 3 | // are changed infrequently 4 | // 5 | 6 | #pragma once 7 | 8 | #include "targetver.h" 9 | 10 | #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers 11 | // Windows Header Files: 12 | #include 13 | 14 | 15 | 16 | // TODO: reference additional headers your program requires here 17 | -------------------------------------------------------------------------------- /MRCentennial/ScreenCapture/targetver.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | // Including SDKDDKVer.h defines the highest available Windows platform. 4 | 5 | // If you wish to build your application for a previous Windows platform, include WinSDKVer.h and 6 | // set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. 7 | 8 | #include 9 | -------------------------------------------------------------------------------- /MRCentennial/images/configure-package.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/images/configure-package.png -------------------------------------------------------------------------------- /MRCentennial/images/create-app-package.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/images/create-app-package.png -------------------------------------------------------------------------------- /MRCentennial/images/create-package.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/images/create-package.png -------------------------------------------------------------------------------- /MRCentennial/images/edit-project.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/images/edit-project.png -------------------------------------------------------------------------------- /MRCentennial/images/mr-all-apps.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/images/mr-all-apps.png -------------------------------------------------------------------------------- /MRCentennial/images/mr-uwp-all-apps.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/images/mr-uwp-all-apps.png -------------------------------------------------------------------------------- /MRCentennial/images/mrportal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/images/mrportal.png -------------------------------------------------------------------------------- /MRCentennial/images/reload-project.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/images/reload-project.png -------------------------------------------------------------------------------- /MRCentennial/images/solution.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/images/solution.png -------------------------------------------------------------------------------- /MRCentennial/images/unload-project.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/images/unload-project.png -------------------------------------------------------------------------------- /MRCentennial/images/wack-all-tests.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/images/wack-all-tests.png -------------------------------------------------------------------------------- /MRCentennial/images/wack-passed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/images/wack-passed.png -------------------------------------------------------------------------------- /MRCentennial/images/wack-start.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennial/images/wack-start.png -------------------------------------------------------------------------------- /MRCentennialAppService/MRAppService/MRAppService.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | de0d9c82-b279-44c4-9f80-b1f87e504d77 6 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tga;tiff;tif;png;wav;mfcribbon-ms 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /MRCentennialAppService/MRAppService/pch.cpp: -------------------------------------------------------------------------------- 1 | #include "pch.h" 2 | -------------------------------------------------------------------------------- /MRCentennialAppService/MRAppService/pch.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | -------------------------------------------------------------------------------- /MRCentennialAppService/MRCentennialAppService/Assets/LockScreenLogo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennialAppService/MRCentennialAppService/Assets/LockScreenLogo.scale-200.png -------------------------------------------------------------------------------- /MRCentennialAppService/MRCentennialAppService/Assets/SplashScreen.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennialAppService/MRCentennialAppService/Assets/SplashScreen.scale-200.png -------------------------------------------------------------------------------- /MRCentennialAppService/MRCentennialAppService/Assets/Square150x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennialAppService/MRCentennialAppService/Assets/Square150x150Logo.scale-200.png -------------------------------------------------------------------------------- /MRCentennialAppService/MRCentennialAppService/Assets/Square44x44Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennialAppService/MRCentennialAppService/Assets/Square44x44Logo.scale-200.png -------------------------------------------------------------------------------- /MRCentennialAppService/MRCentennialAppService/Assets/Square44x44Logo.targetsize-24_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennialAppService/MRCentennialAppService/Assets/Square44x44Logo.targetsize-24_altform-unplated.png -------------------------------------------------------------------------------- /MRCentennialAppService/MRCentennialAppService/Assets/StoreLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennialAppService/MRCentennialAppService/Assets/StoreLogo.png -------------------------------------------------------------------------------- /MRCentennialAppService/MRCentennialAppService/Assets/Wide310x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennialAppService/MRCentennialAppService/Assets/Wide310x150Logo.scale-200.png -------------------------------------------------------------------------------- /MRCentennialAppService/MRCentennialAppService/Content/FullscreenQuadVertexShader.hlsl: -------------------------------------------------------------------------------- 1 | //********************************************************* 2 | // 3 | // Copyright (c) Microsoft. All rights reserved. 4 | // This code is licensed under the MIT License (MIT). 5 | // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF 6 | // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY 7 | // IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR 8 | // PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT. 9 | // 10 | //********************************************************* 11 | 12 | struct VertexShaderInput 13 | { 14 | min16float2 pos : POSITION; 15 | }; 16 | 17 | min16float4 main(VertexShaderInput input) : SV_POSITION 18 | { 19 | return min16float4(input.pos, 0.5f, 1.0f); 20 | } -------------------------------------------------------------------------------- /MRCentennialAppService/MRCentennialAppService/Content/PixelShader.hlsl: -------------------------------------------------------------------------------- 1 | //********************************************************* 2 | // 3 | // Copyright (c) Microsoft. All rights reserved. 4 | // This code is licensed under the MIT License (MIT). 5 | // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF 6 | // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY 7 | // IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR 8 | // PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT. 9 | // 10 | //********************************************************* 11 | 12 | // Per-pixel color data passed through to the pixel shader. 13 | struct PixelShaderInput 14 | { 15 | min16float4 pos : SV_POSITION; 16 | min16float3 color : COLOR0; 17 | min16float2 texCoord : TEXCOORD1; 18 | }; 19 | 20 | Texture2D tex : t0; 21 | SamplerState samp : s0; 22 | 23 | // The pixel shader renders a color value based on an input texture and texture coord 24 | min16float4 main(PixelShaderInput input) : SV_TARGET 25 | { 26 | // Read both distance function values. 27 | min16float4 textureValue = tex.Sample(samp, input.texCoord); 28 | 29 | // Apply the result. 30 | return textureValue; 31 | } -------------------------------------------------------------------------------- /MRCentennialAppService/MRCentennialAppService/Content/TexturePixelShader.hlsl: -------------------------------------------------------------------------------- 1 | //********************************************************* 2 | // 3 | // Copyright (c) Microsoft. All rights reserved. 4 | // This code is licensed under the MIT License (MIT). 5 | // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF 6 | // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY 7 | // IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR 8 | // PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT. 9 | // 10 | //********************************************************* 11 | 12 | // Per-pixel color data passed through the pixel shader. 13 | struct PixelShaderInput 14 | { 15 | min16float4 pos : SV_POSITION; 16 | min16float3 color : COLOR0; 17 | min16float2 texCoord : TEXCOORD1; 18 | }; 19 | 20 | Texture2D tex : t0; 21 | SamplerState samp : s0; 22 | 23 | // The pixel shader renders texture, which may be modified using a color value. 24 | min16float4 main(PixelShaderInput input) : SV_TARGET 25 | { 26 | min16float3 textureValue = (min16float3)(tex.Sample(samp, input.texCoord)); 27 | min16float3 multiplier = input.color; 28 | return min16float4(textureValue * multiplier, 1.f); 29 | } 30 | -------------------------------------------------------------------------------- /MRCentennialAppService/MRCentennialAppService/MRCentennialAppService_TemporaryKey.pfx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennialAppService/MRCentennialAppService/MRCentennialAppService_TemporaryKey.pfx -------------------------------------------------------------------------------- /MRCentennialAppService/MRCentennialAppService/pch.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // pch.cpp 3 | // Include the standard header and generate the precompiled header. 4 | // 5 | 6 | #include "pch.h" 7 | -------------------------------------------------------------------------------- /MRCentennialAppService/MRCentennialAppService/pch.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include 14 | 15 | -------------------------------------------------------------------------------- /MRCentennialAppService/ScreenCaptureApp/ScreenCaptureApp.cpp: -------------------------------------------------------------------------------- 1 | // ScreenCaptureApp.cpp : Defines the entry point for the application. 2 | // 3 | 4 | #include "stdafx.h" 5 | #include "ScreenCapture.h" 6 | 7 | 8 | 9 | // Global Variables: 10 | HINSTANCE hInst; // current instance 11 | 12 | 13 | [Platform::MTAThread] 14 | int APIENTRY wWinMain(_In_ HINSTANCE hInstance, 15 | _In_opt_ HINSTANCE hPrevInstance, 16 | _In_ LPWSTR lpCmdLine, 17 | _In_ int nCmdShow) 18 | { 19 | UNREFERENCED_PARAMETER(hPrevInstance); 20 | UNREFERENCED_PARAMETER(lpCmdLine); 21 | 22 | ScreenCapture sc; 23 | int result = sc.Run(); 24 | return result; 25 | } 26 | 27 | -------------------------------------------------------------------------------- /MRCentennialAppService/ScreenCaptureApp/ScreenCaptureApp.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "resource.h" 4 | -------------------------------------------------------------------------------- /MRCentennialAppService/ScreenCaptureApp/ScreenCaptureApp.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennialAppService/ScreenCaptureApp/ScreenCaptureApp.ico -------------------------------------------------------------------------------- /MRCentennialAppService/ScreenCaptureApp/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ generated include file. 3 | // Used by ScreenCaptureApp.rc 4 | // 5 | 6 | #define IDS_APP_TITLE 103 7 | 8 | #define IDR_MAINFRAME 128 9 | #define IDD_SCREENCAPTUREAPP_DIALOG 102 10 | #define IDD_ABOUTBOX 103 11 | #define IDM_ABOUT 104 12 | #define IDM_EXIT 105 13 | #define IDI_SCREENCAPTUREAPP 107 14 | #define IDI_SMALL 108 15 | #define IDC_SCREENCAPTUREAPP 109 16 | #define IDC_MYICON 2 17 | #ifndef IDC_STATIC 18 | #define IDC_STATIC -1 19 | #endif 20 | // Next default values for new objects 21 | // 22 | #ifdef APSTUDIO_INVOKED 23 | #ifndef APSTUDIO_READONLY_SYMBOLS 24 | 25 | #define _APS_NO_MFC 130 26 | #define _APS_NEXT_RESOURCE_VALUE 129 27 | #define _APS_NEXT_COMMAND_VALUE 32771 28 | #define _APS_NEXT_CONTROL_VALUE 1000 29 | #define _APS_NEXT_SYMED_VALUE 110 30 | #endif 31 | #endif 32 | -------------------------------------------------------------------------------- /MRCentennialAppService/ScreenCaptureApp/small.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRCentennialAppService/ScreenCaptureApp/small.ico -------------------------------------------------------------------------------- /MRCentennialAppService/ScreenCaptureApp/stdafx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // $safeprojectname$.pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "stdafx.h" 6 | 7 | // TODO: reference any additional headers you need in STDAFX.H 8 | // and not in this file 9 | -------------------------------------------------------------------------------- /MRCentennialAppService/ScreenCaptureApp/stdafx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : include file for standard system include files, 2 | // or project specific include files that are used frequently, but 3 | // are changed infrequently 4 | // 5 | 6 | #pragma once 7 | 8 | #include "targetver.h" 9 | 10 | #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers 11 | // Windows Header Files: 12 | #include 13 | 14 | // C RunTime Header Files 15 | #include 16 | #include 17 | #include 18 | #include 19 | 20 | 21 | // TODO: reference additional headers your program requires here 22 | -------------------------------------------------------------------------------- /MRCentennialAppService/ScreenCaptureApp/targetver.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | // Including SDKDDKVer.h defines the highest available Windows platform. 4 | 5 | // If you wish to build your application for a previous Windows platform, include WinSDKVer.h and 6 | // set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. 7 | 8 | #include 9 | -------------------------------------------------------------------------------- /MRWin32/MRWin32-UWP/App.xaml: -------------------------------------------------------------------------------- 1 |  6 | 7 | 8 | -------------------------------------------------------------------------------- /MRWin32/MRWin32-UWP/Assets/LockScreenLogo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRWin32/MRWin32-UWP/Assets/LockScreenLogo.scale-200.png -------------------------------------------------------------------------------- /MRWin32/MRWin32-UWP/Assets/SplashScreen.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRWin32/MRWin32-UWP/Assets/SplashScreen.scale-200.png -------------------------------------------------------------------------------- /MRWin32/MRWin32-UWP/Assets/Square150x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRWin32/MRWin32-UWP/Assets/Square150x150Logo.scale-200.png -------------------------------------------------------------------------------- /MRWin32/MRWin32-UWP/Assets/Square44x44Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRWin32/MRWin32-UWP/Assets/Square44x44Logo.scale-200.png -------------------------------------------------------------------------------- /MRWin32/MRWin32-UWP/Assets/Square44x44Logo.targetsize-24_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRWin32/MRWin32-UWP/Assets/Square44x44Logo.targetsize-24_altform-unplated.png -------------------------------------------------------------------------------- /MRWin32/MRWin32-UWP/Assets/StoreLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRWin32/MRWin32-UWP/Assets/StoreLogo.png -------------------------------------------------------------------------------- /MRWin32/MRWin32-UWP/Assets/Wide310x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRWin32/MRWin32-UWP/Assets/Wide310x150Logo.scale-200.png -------------------------------------------------------------------------------- /MRWin32/MRWin32-UWP/MRWin32-UWP_TemporaryKey.pfx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRWin32/MRWin32-UWP/MRWin32-UWP_TemporaryKey.pfx -------------------------------------------------------------------------------- /MRWin32/MRWin32-UWP/MainPage.xaml: -------------------------------------------------------------------------------- 1 |  10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /MRWin32/MRWin32-UWP/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("MRWin32-UWP")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("MRWin32-UWP")] 13 | [assembly: AssemblyCopyright("Copyright © 2018")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Version information for an assembly consists of the following four values: 18 | // 19 | // Major Version 20 | // Minor Version 21 | // Build Number 22 | // Revision 23 | // 24 | // You can specify all the values or you can default the Build and Revision Numbers 25 | // by using the '*' as shown below: 26 | // [assembly: AssemblyVersion("1.0.*")] 27 | [assembly: AssemblyVersion("1.0.0.0")] 28 | [assembly: AssemblyFileVersion("1.0.0.0")] 29 | [assembly: ComVisible(false)] -------------------------------------------------------------------------------- /MRWin32/MRWin32/AppMain.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "Common\DeviceResources.h" 4 | #include "MRWin32Main.h" 5 | #include 6 | #include 7 | 8 | class AppMain sealed 9 | { 10 | public: 11 | AppMain(); 12 | 13 | void Initialize(); 14 | void Activate(HWND window); 15 | void Close(); 16 | 17 | private: 18 | 19 | void HolographicThread(); 20 | 21 | bool m_activated; 22 | bool m_close; 23 | HWND m_hwnd; 24 | std::thread m_thread; 25 | Windows::Graphics::Holographic::HolographicSpace^ m_holographicSpace; 26 | Windows::UI::Input::Spatial::SpatialInteractionManager^ m_spatialInteractionManager; 27 | std::shared_ptr m_deviceResources; 28 | std::unique_ptr m_main; 29 | }; -------------------------------------------------------------------------------- /MRWin32/MRWin32/Content/GeometryShader.hlsl: -------------------------------------------------------------------------------- 1 | // Per-vertex data from the vertex shader. 2 | struct GeometryShaderInput 3 | { 4 | min16float4 pos : SV_POSITION; 5 | min16float3 color : COLOR0; 6 | uint instId : TEXCOORD0; 7 | }; 8 | 9 | // Per-vertex data passed to the rasterizer. 10 | struct GeometryShaderOutput 11 | { 12 | min16float4 pos : SV_POSITION; 13 | min16float3 color : COLOR0; 14 | uint rtvId : SV_RenderTargetArrayIndex; 15 | }; 16 | 17 | // This geometry shader is a pass-through that leaves the geometry unmodified 18 | // and sets the render target array index. 19 | [maxvertexcount(3)] 20 | void main(triangle GeometryShaderInput input[3], inout TriangleStream outStream) 21 | { 22 | GeometryShaderOutput output; 23 | [unroll(3)] 24 | for (int i = 0; i < 3; ++i) 25 | { 26 | output.pos = input[i].pos; 27 | output.color = input[i].color; 28 | output.rtvId = input[i].instId; 29 | outStream.Append(output); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /MRWin32/MRWin32/Content/PixelShader.hlsl: -------------------------------------------------------------------------------- 1 | // Per-pixel color data passed through the pixel shader. 2 | struct PixelShaderInput 3 | { 4 | min16float4 pos : SV_POSITION; 5 | min16float3 color : COLOR0; 6 | }; 7 | 8 | // The pixel shader passes through the color data. The color data from 9 | // is interpolated and assigned to a pixel at the rasterization step. 10 | min16float4 main(PixelShaderInput input) : SV_TARGET 11 | { 12 | return min16float4(input.color, 1.0f); 13 | } 14 | -------------------------------------------------------------------------------- /MRWin32/MRWin32/Content/ShaderStructures.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | namespace MRWin32 4 | { 5 | // Constant buffer used to send hologram position transform to the shader pipeline. 6 | struct ModelConstantBuffer 7 | { 8 | DirectX::XMFLOAT4X4 model; 9 | }; 10 | 11 | // Assert that the constant buffer remains 16-byte aligned (best practice). 12 | static_assert((sizeof(ModelConstantBuffer) % (sizeof(float) * 4)) == 0, "Model constant buffer size must be 16-byte aligned (16 bytes is the length of four floats)."); 13 | 14 | 15 | // Used to send per-vertex data to the vertex shader. 16 | struct VertexPositionColor 17 | { 18 | DirectX::XMFLOAT3 pos; 19 | DirectX::XMFLOAT3 color; 20 | }; 21 | } -------------------------------------------------------------------------------- /MRWin32/MRWin32/MRWin32.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRWin32/MRWin32/MRWin32.cpp -------------------------------------------------------------------------------- /MRWin32/MRWin32/MRWin32.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRWin32/MRWin32/MRWin32.h -------------------------------------------------------------------------------- /MRWin32/MRWin32/MRWin32.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRWin32/MRWin32/MRWin32.ico -------------------------------------------------------------------------------- /MRWin32/MRWin32/MRWin32.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRWin32/MRWin32/MRWin32.rc -------------------------------------------------------------------------------- /MRWin32/MRWin32/Resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRWin32/MRWin32/Resource.h -------------------------------------------------------------------------------- /MRWin32/MRWin32/pch.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | 14 | -------------------------------------------------------------------------------- /MRWin32/MRWin32/small.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRWin32/MRWin32/small.ico -------------------------------------------------------------------------------- /MRWin32/MRWin32/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRWin32/MRWin32/stdafx.cpp -------------------------------------------------------------------------------- /MRWin32/MRWin32/stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRWin32/MRWin32/stdafx.h -------------------------------------------------------------------------------- /MRWin32/MRWin32/targetver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRWin32/MRWin32/targetver.h -------------------------------------------------------------------------------- /MRWin32/PackageProject/Images/LockScreenLogo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRWin32/PackageProject/Images/LockScreenLogo.scale-200.png -------------------------------------------------------------------------------- /MRWin32/PackageProject/Images/Square150x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRWin32/PackageProject/Images/Square150x150Logo.scale-200.png -------------------------------------------------------------------------------- /MRWin32/PackageProject/Images/Square44x44Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRWin32/PackageProject/Images/Square44x44Logo.scale-200.png -------------------------------------------------------------------------------- /MRWin32/PackageProject/Images/Square44x44Logo.targetsize-24_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRWin32/PackageProject/Images/Square44x44Logo.targetsize-24_altform-unplated.png -------------------------------------------------------------------------------- /MRWin32/PackageProject/Images/StoreLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRWin32/PackageProject/Images/StoreLogo.png -------------------------------------------------------------------------------- /MRWin32/PackageProject/Images/Wide310x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRWin32/PackageProject/Images/Wide310x150Logo.scale-200.png -------------------------------------------------------------------------------- /MRWin32/PackageProject/PackageProject_TemporaryKey.pfx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/MRWin32/PackageProject/PackageProject_TemporaryKey.pfx -------------------------------------------------------------------------------- /MultiInstanceUWP/DirectXPageComponent/AppActivation.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft. All rights reserved. 2 | 3 | #pragma once 4 | #include "pch.h" 5 | 6 | namespace DirectXPageComponent 7 | { 8 | public ref class AppActivation sealed 9 | { 10 | public: 11 | static bool OnAppActivated(Windows::ApplicationModel::Activation::IActivatedEventArgs^ args); 12 | 13 | internal: 14 | static Concurrency::task LaunchAppWithProtocol(Platform::String^ protocol); 15 | 16 | private: 17 | static Windows::UI::Xaml::Controls::Frame^ CreateRootFrame(); 18 | static void InitializePage(Platform::Type^ pageType, Windows::Foundation::Uri^ uri); 19 | }; 20 | 21 | } 22 | -------------------------------------------------------------------------------- /MultiInstanceUWP/DirectXPageComponent/DirectXPage.xaml: -------------------------------------------------------------------------------- 1 |  9 | 10 | 11 | 14 |

15 | 16 | 17 | -------------------------------------------------------------------------------- /SimpleWinRTComponentExample/JSClient/lib/winjs-4.0.1/fonts/Symbols.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/SimpleWinRTComponentExample/JSClient/lib/winjs-4.0.1/fonts/Symbols.ttf -------------------------------------------------------------------------------- /SimpleWinRTComponentExample/WinRTComponent/Class1.cpp: -------------------------------------------------------------------------------- 1 | #include "pch.h" 2 | #include "Class1.h" 3 | 4 | using namespace WinRTComponent; 5 | using namespace Platform; 6 | 7 | Class1::Class1() 8 | { 9 | } 10 | 11 | Platform::String^ Class1::GetString() 12 | { 13 | return ref new Platform::String(L"GetString"); 14 | } 15 | 16 | -------------------------------------------------------------------------------- /SimpleWinRTComponentExample/WinRTComponent/Class1.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | namespace WinRTComponent 4 | { 5 | public ref class Class1 sealed 6 | { 7 | public: 8 | Class1(); 9 | Platform::String^ GetString(); 10 | }; 11 | } 12 | -------------------------------------------------------------------------------- /SimpleWinRTComponentExample/WinRTComponent/WinRTComponent.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 513467ba-ed3e-4951-82e8-802b23d82649 6 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tga;tiff;tif;png;wav;mfcribbon-ms 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /SimpleWinRTComponentExample/WinRTComponent/pch.cpp: -------------------------------------------------------------------------------- 1 | #include "pch.h" 2 | -------------------------------------------------------------------------------- /SimpleWinRTComponentExample/WinRTComponent/pch.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | -------------------------------------------------------------------------------- /SpeechTest/SpeechTest/Assets/LockScreenLogo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/SpeechTest/SpeechTest/Assets/LockScreenLogo.scale-200.png -------------------------------------------------------------------------------- /SpeechTest/SpeechTest/Assets/SplashScreen.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/SpeechTest/SpeechTest/Assets/SplashScreen.scale-200.png -------------------------------------------------------------------------------- /SpeechTest/SpeechTest/Assets/Square150x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/SpeechTest/SpeechTest/Assets/Square150x150Logo.scale-200.png -------------------------------------------------------------------------------- /SpeechTest/SpeechTest/Assets/Square44x44Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/SpeechTest/SpeechTest/Assets/Square44x44Logo.scale-200.png -------------------------------------------------------------------------------- /SpeechTest/SpeechTest/Assets/Square44x44Logo.targetsize-24_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/SpeechTest/SpeechTest/Assets/Square44x44Logo.targetsize-24_altform-unplated.png -------------------------------------------------------------------------------- /SpeechTest/SpeechTest/Assets/StoreLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/SpeechTest/SpeechTest/Assets/StoreLogo.png -------------------------------------------------------------------------------- /SpeechTest/SpeechTest/Assets/Wide310x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/SpeechTest/SpeechTest/Assets/Wide310x150Logo.scale-200.png -------------------------------------------------------------------------------- /SpeechTest/SpeechTest/Content/AudioCapturePermissions.h: -------------------------------------------------------------------------------- 1 | //********************************************************* 2 | // 3 | // Copyright (c) Microsoft. All rights reserved. 4 | // This code is licensed under the MIT License (MIT). 5 | // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF 6 | // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY 7 | // IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR 8 | // PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT. 9 | // 10 | //********************************************************* 11 | #pragma once 12 | namespace Speech 13 | { 14 | ref class AudioCapturePermissions sealed 15 | { 16 | public: 17 | static Windows::Foundation::IAsyncOperation^ RequestMicrophonePermissionAsync(); 18 | 19 | private: 20 | // If no recording device is attached, attempting to get access to audio capture devices will throw 21 | // a System.Exception object, with this HResult set. 22 | static const int NoCaptureDevicesHResult = -1072845856; 23 | }; 24 | } 25 | 26 | -------------------------------------------------------------------------------- /SpeechTest/SpeechTest/Content/GeometryShader.hlsl: -------------------------------------------------------------------------------- 1 | // Per-vertex data from the vertex shader. 2 | struct GeometryShaderInput 3 | { 4 | min16float4 pos : SV_POSITION; 5 | min16float3 color : COLOR0; 6 | uint instId : TEXCOORD0; 7 | }; 8 | 9 | // Per-vertex data passed to the rasterizer. 10 | struct GeometryShaderOutput 11 | { 12 | min16float4 pos : SV_POSITION; 13 | min16float3 color : COLOR0; 14 | uint rtvId : SV_RenderTargetArrayIndex; 15 | }; 16 | 17 | // This geometry shader is a pass-through that leaves the geometry unmodified 18 | // and sets the render target array index. 19 | [maxvertexcount(3)] 20 | void main(triangle GeometryShaderInput input[3], inout TriangleStream outStream) 21 | { 22 | GeometryShaderOutput output; 23 | [unroll(3)] 24 | for (int i = 0; i < 3; ++i) 25 | { 26 | output.pos = input[i].pos; 27 | output.color = input[i].color; 28 | output.rtvId = input[i].instId; 29 | outStream.Append(output); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /SpeechTest/SpeechTest/Content/PixelShader.hlsl: -------------------------------------------------------------------------------- 1 | // Per-pixel color data passed through the pixel shader. 2 | struct PixelShaderInput 3 | { 4 | min16float4 pos : SV_POSITION; 5 | min16float3 color : COLOR0; 6 | }; 7 | 8 | // The pixel shader passes through the color data. The color data from 9 | // is interpolated and assigned to a pixel at the rasterization step. 10 | min16float4 main(PixelShaderInput input) : SV_TARGET 11 | { 12 | return min16float4(input.color, 1.0f); 13 | } 14 | -------------------------------------------------------------------------------- /SpeechTest/SpeechTest/Content/ShaderStructures.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | namespace SpeechTest 4 | { 5 | // Constant buffer used to send hologram position transform to the shader pipeline. 6 | struct ModelConstantBuffer 7 | { 8 | DirectX::XMFLOAT4X4 model; 9 | DirectX::XMFLOAT4 color; 10 | }; 11 | 12 | // Assert that the constant buffer remains 16-byte aligned (best practice). 13 | static_assert((sizeof(ModelConstantBuffer) % (sizeof(float) * 4)) == 0, "Model constant buffer size must be 16-byte aligned (16 bytes is the length of four floats)."); 14 | 15 | 16 | // Used to send per-vertex data to the vertex shader. 17 | struct VertexPositionColor 18 | { 19 | DirectX::XMFLOAT3 pos; 20 | DirectX::XMFLOAT3 color; 21 | }; 22 | 23 | // Used to send per-vertex data to the vertex shader. 24 | struct VertexPosition 25 | { 26 | DirectX::XMFLOAT3 pos; 27 | }; 28 | } -------------------------------------------------------------------------------- /SpeechTest/SpeechTest/SpeechTest_TemporaryKey.pfx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/SpeechTest/SpeechTest/SpeechTest_TemporaryKey.pfx -------------------------------------------------------------------------------- /SpeechTest/SpeechTest/pch.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // pch.cpp 3 | // Include the standard header and generate the precompiled header. 4 | // 5 | 6 | #include "pch.h" 7 | -------------------------------------------------------------------------------- /SpeechTest/SpeechTest/pch.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include 14 | 15 | -------------------------------------------------------------------------------- /SubNet/SubNet/App.xaml: -------------------------------------------------------------------------------- 1 |  7 | 8 | 9 | -------------------------------------------------------------------------------- /SubNet/SubNet/App.xaml.h: -------------------------------------------------------------------------------- 1 | // 2 | // App.xaml.h 3 | // Declaration of the App class. 4 | // 5 | 6 | #pragma once 7 | 8 | #include "App.g.h" 9 | 10 | namespace SubNet 11 | { 12 | /// 13 | /// Provides application-specific behavior to supplement the default Application class. 14 | /// 15 | ref class App sealed 16 | { 17 | protected: 18 | virtual void OnLaunched(Windows::ApplicationModel::Activation::LaunchActivatedEventArgs^ e) override; 19 | 20 | internal: 21 | App(); 22 | 23 | private: 24 | void OnSuspending(Platform::Object^ sender, Windows::ApplicationModel::SuspendingEventArgs^ e); 25 | void OnNavigationFailed(Platform::Object ^sender, Windows::UI::Xaml::Navigation::NavigationFailedEventArgs ^e); 26 | }; 27 | } 28 | -------------------------------------------------------------------------------- /SubNet/SubNet/Assets/LockScreenLogo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/SubNet/SubNet/Assets/LockScreenLogo.scale-200.png -------------------------------------------------------------------------------- /SubNet/SubNet/Assets/SplashScreen.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/SubNet/SubNet/Assets/SplashScreen.scale-200.png -------------------------------------------------------------------------------- /SubNet/SubNet/Assets/Square150x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/SubNet/SubNet/Assets/Square150x150Logo.scale-200.png -------------------------------------------------------------------------------- /SubNet/SubNet/Assets/Square44x44Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/SubNet/SubNet/Assets/Square44x44Logo.scale-200.png -------------------------------------------------------------------------------- /SubNet/SubNet/Assets/Square44x44Logo.targetsize-24_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/SubNet/SubNet/Assets/Square44x44Logo.targetsize-24_altform-unplated.png -------------------------------------------------------------------------------- /SubNet/SubNet/Assets/StoreLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/SubNet/SubNet/Assets/StoreLogo.png -------------------------------------------------------------------------------- /SubNet/SubNet/Assets/Wide310x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/SubNet/SubNet/Assets/Wide310x150Logo.scale-200.png -------------------------------------------------------------------------------- /SubNet/SubNet/MainPage.xaml: -------------------------------------------------------------------------------- 1 |  9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /SubNet/SubNet/MainPage.xaml.h: -------------------------------------------------------------------------------- 1 | // 2 | // MainPage.xaml.h 3 | // Declaration of the MainPage class. 4 | // 5 | 6 | #pragma once 7 | 8 | #include "MainPage.g.h" 9 | 10 | namespace SubNet 11 | { 12 | /// 13 | /// An empty page that can be used on its own or navigated to within a Frame. 14 | /// 15 | public ref class MainPage sealed 16 | { 17 | public: 18 | MainPage(); 19 | 20 | private: 21 | void GetInterfaces(); 22 | 23 | }; 24 | } 25 | -------------------------------------------------------------------------------- /SubNet/SubNet/SubNet_TemporaryKey.pfx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/SubNet/SubNet/SubNet_TemporaryKey.pfx -------------------------------------------------------------------------------- /SubNet/SubNet/pch.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // pch.cpp 3 | // Include the standard header and generate the precompiled header. 4 | // 5 | 6 | #include "pch.h" 7 | -------------------------------------------------------------------------------- /SubNet/SubNet/pch.h: -------------------------------------------------------------------------------- 1 | // 2 | // pch.h 3 | // Header for standard system include files. 4 | // 5 | 6 | #pragma once 7 | 8 | #include 9 | #include 10 | 11 | #include "App.xaml.h" 12 | -------------------------------------------------------------------------------- /TestHMD/TestHMD/TestHMD.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/TestHMD/TestHMD/TestHMD.cpp -------------------------------------------------------------------------------- /TestHMD/TestHMD/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/TestHMD/TestHMD/stdafx.cpp -------------------------------------------------------------------------------- /TestHMD/TestHMD/stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/TestHMD/TestHMD/stdafx.h -------------------------------------------------------------------------------- /TestHMD/TestHMD/targetver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/TestHMD/TestHMD/targetver.h -------------------------------------------------------------------------------- /TestHMD/TestHMDApp/Assets/LockScreenLogo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/TestHMD/TestHMDApp/Assets/LockScreenLogo.scale-200.png -------------------------------------------------------------------------------- /TestHMD/TestHMDApp/Assets/SplashScreen.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/TestHMD/TestHMDApp/Assets/SplashScreen.scale-200.png -------------------------------------------------------------------------------- /TestHMD/TestHMDApp/Assets/Square150x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/TestHMD/TestHMDApp/Assets/Square150x150Logo.scale-200.png -------------------------------------------------------------------------------- /TestHMD/TestHMDApp/Assets/Square44x44Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/TestHMD/TestHMDApp/Assets/Square44x44Logo.scale-200.png -------------------------------------------------------------------------------- /TestHMD/TestHMDApp/Assets/Square44x44Logo.targetsize-24_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/TestHMD/TestHMDApp/Assets/Square44x44Logo.targetsize-24_altform-unplated.png -------------------------------------------------------------------------------- /TestHMD/TestHMDApp/Assets/StoreLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/TestHMD/TestHMDApp/Assets/StoreLogo.png -------------------------------------------------------------------------------- /TestHMD/TestHMDApp/Assets/Wide310x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/TestHMD/TestHMDApp/Assets/Wide310x150Logo.scale-200.png -------------------------------------------------------------------------------- /TestHMD/TestHMDApp/Content/GeometryShader.hlsl: -------------------------------------------------------------------------------- 1 | // Per-vertex data from the vertex shader. 2 | struct GeometryShaderInput 3 | { 4 | min16float4 pos : SV_POSITION; 5 | min16float3 color : COLOR0; 6 | uint instId : TEXCOORD0; 7 | }; 8 | 9 | // Per-vertex data passed to the rasterizer. 10 | struct GeometryShaderOutput 11 | { 12 | min16float4 pos : SV_POSITION; 13 | min16float3 color : COLOR0; 14 | uint rtvId : SV_RenderTargetArrayIndex; 15 | }; 16 | 17 | // This geometry shader is a pass-through that leaves the geometry unmodified 18 | // and sets the render target array index. 19 | [maxvertexcount(3)] 20 | void main(triangle GeometryShaderInput input[3], inout TriangleStream outStream) 21 | { 22 | GeometryShaderOutput output; 23 | [unroll(3)] 24 | for (int i = 0; i < 3; ++i) 25 | { 26 | output.pos = input[i].pos; 27 | output.color = input[i].color; 28 | output.rtvId = input[i].instId; 29 | outStream.Append(output); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /TestHMD/TestHMDApp/Content/PixelShader.hlsl: -------------------------------------------------------------------------------- 1 | // Per-pixel color data passed through the pixel shader. 2 | struct PixelShaderInput 3 | { 4 | min16float4 pos : SV_POSITION; 5 | min16float3 color : COLOR0; 6 | }; 7 | 8 | // The pixel shader passes through the color data. The color data from 9 | // is interpolated and assigned to a pixel at the rasterization step. 10 | min16float4 main(PixelShaderInput input) : SV_TARGET 11 | { 12 | return min16float4(input.color, 1.0f); 13 | } 14 | -------------------------------------------------------------------------------- /TestHMD/TestHMDApp/Content/ShaderStructures.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | namespace TestHMDApp 4 | { 5 | // Constant buffer used to send hologram position transform to the shader pipeline. 6 | struct ModelConstantBuffer 7 | { 8 | DirectX::XMFLOAT4X4 model; 9 | }; 10 | 11 | // Assert that the constant buffer remains 16-byte aligned (best practice). 12 | static_assert((sizeof(ModelConstantBuffer) % (sizeof(float) * 4)) == 0, "Model constant buffer size must be 16-byte aligned (16 bytes is the length of four floats)."); 13 | 14 | 15 | // Used to send per-vertex data to the vertex shader. 16 | struct VertexPositionColor 17 | { 18 | DirectX::XMFLOAT3 pos; 19 | DirectX::XMFLOAT3 color; 20 | }; 21 | } -------------------------------------------------------------------------------- /TestHMD/TestHMDApp/Content/VPRTVertexShader.hlsl: -------------------------------------------------------------------------------- 1 | // Per-vertex data passed to the geometry shader. 2 | struct VertexShaderOutput 3 | { 4 | min16float4 pos : SV_POSITION; 5 | min16float3 color : COLOR0; 6 | 7 | // The render target array index is set here in the vertex shader. 8 | uint viewId : SV_RenderTargetArrayIndex; 9 | }; 10 | 11 | #include "VertexShaderShared.hlsl" 12 | -------------------------------------------------------------------------------- /TestHMD/TestHMDApp/Content/VertexShader.hlsl: -------------------------------------------------------------------------------- 1 | // Per-vertex data passed to the geometry shader. 2 | struct VertexShaderOutput 3 | { 4 | min16float4 pos : SV_POSITION; 5 | min16float3 color : COLOR0; 6 | 7 | // The render target array index will be set by the geometry shader. 8 | uint viewId : TEXCOORD0; 9 | }; 10 | 11 | #include "VertexShaderShared.hlsl" 12 | -------------------------------------------------------------------------------- /TestHMD/TestHMDApp/TestHMDApp_TemporaryKey.pfx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/TestHMD/TestHMDApp/TestHMDApp_TemporaryKey.pfx -------------------------------------------------------------------------------- /TestHMD/TestHMDApp/pch.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // pch.cpp 3 | // Include the standard header and generate the precompiled header. 4 | // 5 | 6 | #include "pch.h" 7 | -------------------------------------------------------------------------------- /TestHMD/TestHMDApp/pch.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include 14 | 15 | -------------------------------------------------------------------------------- /WebViewCapture/WebViewCapture/WebViewCapture/App.xaml: -------------------------------------------------------------------------------- 1 |  7 | 8 | 9 | -------------------------------------------------------------------------------- /WebViewCapture/WebViewCapture/WebViewCapture/App.xaml.h: -------------------------------------------------------------------------------- 1 | // 2 | // App.xaml.h 3 | // Declaration of the App class. 4 | // 5 | 6 | #pragma once 7 | 8 | #include "App.g.h" 9 | 10 | namespace WebViewCapture 11 | { 12 | /// 13 | /// Provides application-specific behavior to supplement the default Application class. 14 | /// 15 | ref class App sealed 16 | { 17 | protected: 18 | virtual void OnLaunched(Windows::ApplicationModel::Activation::LaunchActivatedEventArgs^ e) override; 19 | 20 | internal: 21 | App(); 22 | 23 | private: 24 | void OnSuspending(Platform::Object^ sender, Windows::ApplicationModel::SuspendingEventArgs^ e); 25 | void OnNavigationFailed(Platform::Object ^sender, Windows::UI::Xaml::Navigation::NavigationFailedEventArgs ^e); 26 | }; 27 | } 28 | -------------------------------------------------------------------------------- /WebViewCapture/WebViewCapture/WebViewCapture/Assets/LockScreenLogo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/WebViewCapture/WebViewCapture/WebViewCapture/Assets/LockScreenLogo.scale-200.png -------------------------------------------------------------------------------- /WebViewCapture/WebViewCapture/WebViewCapture/Assets/SplashScreen.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/WebViewCapture/WebViewCapture/WebViewCapture/Assets/SplashScreen.scale-200.png -------------------------------------------------------------------------------- /WebViewCapture/WebViewCapture/WebViewCapture/Assets/Square150x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/WebViewCapture/WebViewCapture/WebViewCapture/Assets/Square150x150Logo.scale-200.png -------------------------------------------------------------------------------- /WebViewCapture/WebViewCapture/WebViewCapture/Assets/Square44x44Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/WebViewCapture/WebViewCapture/WebViewCapture/Assets/Square44x44Logo.scale-200.png -------------------------------------------------------------------------------- /WebViewCapture/WebViewCapture/WebViewCapture/Assets/Square44x44Logo.targetsize-24_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/WebViewCapture/WebViewCapture/WebViewCapture/Assets/Square44x44Logo.targetsize-24_altform-unplated.png -------------------------------------------------------------------------------- /WebViewCapture/WebViewCapture/WebViewCapture/Assets/StoreLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/WebViewCapture/WebViewCapture/WebViewCapture/Assets/StoreLogo.png -------------------------------------------------------------------------------- /WebViewCapture/WebViewCapture/WebViewCapture/Assets/Wide310x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/WebViewCapture/WebViewCapture/WebViewCapture/Assets/Wide310x150Logo.scale-200.png -------------------------------------------------------------------------------- /WebViewCapture/WebViewCapture/WebViewCapture/SecondaryPage.xaml: -------------------------------------------------------------------------------- 1 |  9 | 10 | 11 | 12 | 13 | 15 |

16 | 17 | -------------------------------------------------------------------------------- /WebViewExample/WebViewExample/MainPage.xaml: -------------------------------------------------------------------------------- 1 |  9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /WebViewExample/WebViewExample/MainPage.xaml.h: -------------------------------------------------------------------------------- 1 | // 2 | // MainPage.xaml.h 3 | // Declaration of the MainPage class. 4 | // 5 | 6 | #pragma once 7 | 8 | #include "MainPage.g.h" 9 | 10 | namespace WebViewExample 11 | { 12 | /// 13 | /// An empty page that can be used on its own or navigated to within a Frame. 14 | /// 15 | public ref class MainPage sealed 16 | { 17 | public: 18 | MainPage(); 19 | 20 | protected: 21 | virtual void OnNavigatedTo(Windows::UI::Xaml::Navigation::NavigationEventArgs^ e) override; 22 | virtual void OnNavigatedFrom(Windows::UI::Xaml::Navigation::NavigationEventArgs^ e) override; 23 | 24 | private: 25 | void webView_NavigationStarting(Windows::UI::Xaml::Controls::WebView^ sender, Windows::UI::Xaml::Controls::WebViewNavigationStartingEventArgs^ args); 26 | 27 | void JavaScriptCallbackHandler(WindowsRuntimeComponent1::Class1^ sender, Platform::String^ args); 28 | 29 | WindowsRuntimeComponent1::Class1^ m_helper; 30 | Windows::Foundation::EventRegistrationToken m_webToken; 31 | }; 32 | } 33 | -------------------------------------------------------------------------------- /WebViewExample/WebViewExample/WebViewExample_TemporaryKey.pfx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/WebViewExample/WebViewExample/WebViewExample_TemporaryKey.pfx -------------------------------------------------------------------------------- /WebViewExample/WebViewExample/pch.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // pch.cpp 3 | // Include the standard header and generate the precompiled header. 4 | // 5 | 6 | #include "pch.h" 7 | -------------------------------------------------------------------------------- /WebViewExample/WebViewExample/pch.h: -------------------------------------------------------------------------------- 1 | // 2 | // pch.h 3 | // Header for standard system include files. 4 | // 5 | 6 | #pragma once 7 | 8 | #include 9 | #include 10 | 11 | #include "App.xaml.h" 12 | -------------------------------------------------------------------------------- /WebViewExample/WindowsRuntimeComponent1/Class1.cpp: -------------------------------------------------------------------------------- 1 | #include "pch.h" 2 | #include "Class1.h" 3 | 4 | using namespace WindowsRuntimeComponent1; 5 | using namespace Platform; 6 | using namespace Windows::UI::Core; 7 | 8 | Class1::Class1() 9 | { 10 | auto window = Windows::UI::Core::CoreWindow::GetForCurrentThread(); 11 | m_dispatcher = window->Dispatcher; 12 | } 13 | 14 | void Class1::stringFromJavaScript(Platform::String^ args) 15 | { 16 | m_dispatcher->RunAsync(Windows::UI::Core::CoreDispatcherPriority::Normal, ref new Windows::UI::Core::DispatchedHandler([this, args]() 17 | { 18 | OnJavaScriptCallback(this, args); 19 | })); 20 | } 21 | 22 | void Class1::boolFromJavaScript(Platform::Boolean arg) 23 | { 24 | m_dispatcher->RunAsync(Windows::UI::Core::CoreDispatcherPriority::Normal, ref new Windows::UI::Core::DispatchedHandler([this, arg]() 25 | { 26 | OnJavaScriptCallback(this, "boolFromJavaScript"); 27 | })); 28 | } 29 | 30 | -------------------------------------------------------------------------------- /WebViewExample/WindowsRuntimeComponent1/Class1.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | namespace WindowsRuntimeComponent1 4 | { 5 | ref class Class1; 6 | public delegate void JavaScriptCallbackHandler(Class1^ sender, Platform::String^ s); 7 | 8 | [Windows::Foundation::Metadata::AllowForWeb] 9 | public ref class Class1 sealed 10 | { 11 | public: 12 | Class1(); 13 | void stringFromJavaScript(Platform::String^ args); 14 | void boolFromJavaScript(Platform::Boolean arg); 15 | 16 | // Event whose type is a delegate "class" 17 | event JavaScriptCallbackHandler^ OnJavaScriptCallback; 18 | 19 | private: 20 | Windows::UI::Core::CoreDispatcher^ m_dispatcher; 21 | 22 | }; 23 | } 24 | -------------------------------------------------------------------------------- /WebViewExample/WindowsRuntimeComponent1/WindowsRuntimeComponent1.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 58fb77af-fe45-48aa-970f-17ff2114e76e 6 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tga;tiff;tif;png;wav;mfcribbon-ms 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /WebViewExample/WindowsRuntimeComponent1/pch.cpp: -------------------------------------------------------------------------------- 1 | #include "pch.h" 2 | -------------------------------------------------------------------------------- /WebViewExample/WindowsRuntimeComponent1/pch.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | -------------------------------------------------------------------------------- /WinRTComponentExample/CS_Client/App.xaml: -------------------------------------------------------------------------------- 1 |  7 | 8 | 9 | -------------------------------------------------------------------------------- /WinRTComponentExample/CS_Client/Assets/LockScreenLogo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/WinRTComponentExample/CS_Client/Assets/LockScreenLogo.scale-200.png -------------------------------------------------------------------------------- /WinRTComponentExample/CS_Client/Assets/SplashScreen.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/WinRTComponentExample/CS_Client/Assets/SplashScreen.scale-200.png -------------------------------------------------------------------------------- /WinRTComponentExample/CS_Client/Assets/Square150x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/WinRTComponentExample/CS_Client/Assets/Square150x150Logo.scale-200.png -------------------------------------------------------------------------------- /WinRTComponentExample/CS_Client/Assets/Square44x44Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/WinRTComponentExample/CS_Client/Assets/Square44x44Logo.scale-200.png -------------------------------------------------------------------------------- /WinRTComponentExample/CS_Client/Assets/Square44x44Logo.targetsize-24_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/WinRTComponentExample/CS_Client/Assets/Square44x44Logo.targetsize-24_altform-unplated.png -------------------------------------------------------------------------------- /WinRTComponentExample/CS_Client/Assets/StoreLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/WinRTComponentExample/CS_Client/Assets/StoreLogo.png -------------------------------------------------------------------------------- /WinRTComponentExample/CS_Client/Assets/Wide310x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/WinRTComponentExample/CS_Client/Assets/Wide310x150Logo.scale-200.png -------------------------------------------------------------------------------- /WinRTComponentExample/CS_Client/CS_Client_TemporaryKey.pfx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/WinRTComponentExample/CS_Client/CS_Client_TemporaryKey.pfx -------------------------------------------------------------------------------- /WinRTComponentExample/CS_Client/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("CS_Client")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("CS_Client")] 13 | [assembly: AssemblyCopyright("Copyright © 2016")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Version information for an assembly consists of the following four values: 18 | // 19 | // Major Version 20 | // Minor Version 21 | // Build Number 22 | // Revision 23 | // 24 | // You can specify all the values or you can default the Build and Revision Numbers 25 | // by using the '*' as shown below: 26 | // [assembly: AssemblyVersion("1.0.*")] 27 | [assembly: AssemblyVersion("1.0.0.0")] 28 | [assembly: AssemblyFileVersion("1.0.0.0")] 29 | [assembly: ComVisible(false)] -------------------------------------------------------------------------------- /WinRTComponentExample/CS_Client/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "Microsoft.NETCore.UniversalWindowsPlatform": "5.1.0" 4 | }, 5 | "frameworks": { 6 | "uap10.0": {} 7 | }, 8 | "runtimes": { 9 | "win10-arm": {}, 10 | "win10-arm-aot": {}, 11 | "win10-x86": {}, 12 | "win10-x86-aot": {}, 13 | "win10-x64": {}, 14 | "win10-x64-aot": {} 15 | } 16 | } -------------------------------------------------------------------------------- /WinRTComponentExample/JS_Client/JS_Client_TemporaryKey.pfx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/WinRTComponentExample/JS_Client/JS_Client_TemporaryKey.pfx -------------------------------------------------------------------------------- /WinRTComponentExample/JS_Client/css/default.css: -------------------------------------------------------------------------------- 1 | #LogButtonDiv { 2 | border: orange solid 1px; 3 | -ms-grid-row: 1; /* default is 1 */ 4 | -ms-grid-column: 1; /* default is 1 */ 5 | } 6 | #LogResultDiv { 7 | border: red solid 1px; 8 | -ms-grid-row: 1; 9 | -ms-grid-column: 2; 10 | } 11 | #UnorderedPrimeButtonDiv, #OrderedPrimeButtonDiv { 12 | border: orange solid 1px; 13 | -ms-grid-row: 2; 14 | -ms-grid-column:1; 15 | } 16 | #UnorderedPrimeProgress, #OrderedPrimeProgress { 17 | border: red solid 1px; 18 | -ms-grid-column-span: 2; 19 | height: 40px; 20 | } 21 | #UnorderedPrimeResult, #OrderedPrimeResult { 22 | border: red solid 1px; 23 | font-size:smaller; 24 | -ms-grid-row: 2; 25 | -ms-grid-column: 3; 26 | -ms-overflow-style:scrollbar; 27 | } -------------------------------------------------------------------------------- /WinRTComponentExample/JS_Client/images/LockScreenLogo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/WinRTComponentExample/JS_Client/images/LockScreenLogo.scale-200.png -------------------------------------------------------------------------------- /WinRTComponentExample/JS_Client/images/SplashScreen.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/WinRTComponentExample/JS_Client/images/SplashScreen.scale-200.png -------------------------------------------------------------------------------- /WinRTComponentExample/JS_Client/images/Square150x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/WinRTComponentExample/JS_Client/images/Square150x150Logo.scale-200.png -------------------------------------------------------------------------------- /WinRTComponentExample/JS_Client/images/Square44x44Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/WinRTComponentExample/JS_Client/images/Square44x44Logo.scale-200.png -------------------------------------------------------------------------------- /WinRTComponentExample/JS_Client/images/Square44x44Logo.targetsize-24_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/WinRTComponentExample/JS_Client/images/Square44x44Logo.targetsize-24_altform-unplated.png -------------------------------------------------------------------------------- /WinRTComponentExample/JS_Client/images/StoreLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/WinRTComponentExample/JS_Client/images/StoreLogo.png -------------------------------------------------------------------------------- /WinRTComponentExample/JS_Client/images/Wide310x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/WinRTComponentExample/JS_Client/images/Wide310x150Logo.scale-200.png -------------------------------------------------------------------------------- /WinRTComponentExample/JS_Client/lib/winjs-4.0.1/fonts/Symbols.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/WinRTComponentExample/JS_Client/lib/winjs-4.0.1/fonts/Symbols.ttf -------------------------------------------------------------------------------- /WinRTComponentExample/WinRT_CPP/Class1.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | #include 6 | #include 7 | 8 | namespace WinRT_CPP 9 | { 10 | public delegate void PrimeFoundHandler(int result); 11 | 12 | public ref class Class1 sealed 13 | { 14 | public: 15 | Class1(); 16 | 17 | // Synchronous method. 18 | Windows::Foundation::Collections::IVector^ ComputeResult(double input); 19 | 20 | // Asynchronous methods 21 | Windows::Foundation::IAsyncOperationWithProgress^, double>^ 22 | GetPrimesOrdered(int first, int last); 23 | Windows::Foundation::IAsyncActionWithProgress^ GetPrimesUnordered(int first, int last); 24 | 25 | // Event whose type is a delegate "class" 26 | event PrimeFoundHandler^ primeFoundEvent; 27 | 28 | private: 29 | bool is_prime(int n); 30 | Windows::UI::Core::CoreDispatcher^ m_dispatcher; 31 | }; 32 | } 33 | -------------------------------------------------------------------------------- /WinRTComponentExample/WinRT_CPP/WinRT_CPP.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | e18aff23-ce4f-4d90-a033-86a2bc8fffce 6 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tga;tiff;tif;png;wav;mfcribbon-ms 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /WinRTComponentExample/WinRT_CPP/pch.cpp: -------------------------------------------------------------------------------- 1 | #include "pch.h" 2 | -------------------------------------------------------------------------------- /WinRTComponentExample/WinRT_CPP/pch.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | -------------------------------------------------------------------------------- /XAML SwapChainPanel DirectX interop sample/C# and C++/DirectXPanels/ShaderStructures.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | namespace DX 4 | { 5 | // Constant buffer used to send MVP matrices to the vertex shader. 6 | struct ModelViewProjectionConstantBuffer 7 | { 8 | DirectX::XMFLOAT4X4 model; 9 | DirectX::XMFLOAT4X4 view; 10 | DirectX::XMFLOAT4X4 projection; 11 | }; 12 | 13 | // Used to send per-vertex data to the vertex shader. 14 | struct VertexPositionColor 15 | { 16 | DirectX::XMFLOAT3 pos; 17 | DirectX::XMFLOAT3 color; 18 | }; 19 | } -------------------------------------------------------------------------------- /XAML SwapChainPanel DirectX interop sample/C# and C++/DirectXPanels/SimplePixelShader.hlsl: -------------------------------------------------------------------------------- 1 | //********************************************************* 2 | // 3 | // Copyright (c) Microsoft. All rights reserved. 4 | // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF 5 | // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY 6 | // IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR 7 | // PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT. 8 | // 9 | //********************************************************* 10 | 11 | struct PixelShaderInput 12 | { 13 | float3 color : COLOR0; 14 | }; 15 | 16 | float4 main(PixelShaderInput input) : SV_TARGET 17 | { 18 | return float4(input.color,1.0f); 19 | } 20 | -------------------------------------------------------------------------------- /XAML SwapChainPanel DirectX interop sample/C# and C++/DirectXPanels/pch.cpp: -------------------------------------------------------------------------------- 1 | //********************************************************* 2 | // 3 | // Copyright (c) Microsoft. All rights reserved. 4 | // 5 | //********************************************************* 6 | 7 | // 8 | // pch.cpp 9 | // Include the standard header and generate the precompiled header. 10 | // 11 | 12 | #include "pch.h" 13 | -------------------------------------------------------------------------------- /XAML SwapChainPanel DirectX interop sample/C# and C++/DirectXPanels/pch.h: -------------------------------------------------------------------------------- 1 | //********************************************************* 2 | // 3 | // Copyright (c) Microsoft. All rights reserved. 4 | // 5 | //********************************************************* 6 | 7 | // 8 | // pch.h 9 | // Header for standard system include files. 10 | // 11 | 12 | #pragma once 13 | 14 | #include 15 | #include 16 | #include 17 | 18 | #include 19 | 20 | -------------------------------------------------------------------------------- /XAML SwapChainPanel DirectX interop sample/C# and C++/UWPSwapChainPanel/App.xaml: -------------------------------------------------------------------------------- 1 |  8 | 14 | 15 | 16 | 17 | 18 | 19 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /XAML SwapChainPanel DirectX interop sample/C# and C++/UWPSwapChainPanel/Assets/LockScreenLogo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/XAML SwapChainPanel DirectX interop sample/C# and C++/UWPSwapChainPanel/Assets/LockScreenLogo.scale-200.png -------------------------------------------------------------------------------- /XAML SwapChainPanel DirectX interop sample/C# and C++/UWPSwapChainPanel/Assets/ScaledImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/XAML SwapChainPanel DirectX interop sample/C# and C++/UWPSwapChainPanel/Assets/ScaledImage.png -------------------------------------------------------------------------------- /XAML SwapChainPanel DirectX interop sample/C# and C++/UWPSwapChainPanel/Assets/SplashScreen.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/XAML SwapChainPanel DirectX interop sample/C# and C++/UWPSwapChainPanel/Assets/SplashScreen.scale-200.png -------------------------------------------------------------------------------- /XAML SwapChainPanel DirectX interop sample/C# and C++/UWPSwapChainPanel/Assets/Square150x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/XAML SwapChainPanel DirectX interop sample/C# and C++/UWPSwapChainPanel/Assets/Square150x150Logo.scale-200.png -------------------------------------------------------------------------------- /XAML SwapChainPanel DirectX interop sample/C# and C++/UWPSwapChainPanel/Assets/Square44x44Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/XAML SwapChainPanel DirectX interop sample/C# and C++/UWPSwapChainPanel/Assets/Square44x44Logo.scale-200.png -------------------------------------------------------------------------------- /XAML SwapChainPanel DirectX interop sample/C# and C++/UWPSwapChainPanel/Assets/Square44x44Logo.targetsize-24_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/XAML SwapChainPanel DirectX interop sample/C# and C++/UWPSwapChainPanel/Assets/Square44x44Logo.targetsize-24_altform-unplated.png -------------------------------------------------------------------------------- /XAML SwapChainPanel DirectX interop sample/C# and C++/UWPSwapChainPanel/Assets/StoreLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/XAML SwapChainPanel DirectX interop sample/C# and C++/UWPSwapChainPanel/Assets/StoreLogo.png -------------------------------------------------------------------------------- /XAML SwapChainPanel DirectX interop sample/C# and C++/UWPSwapChainPanel/Assets/Wide310x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/XAML SwapChainPanel DirectX interop sample/C# and C++/UWPSwapChainPanel/Assets/Wide310x150Logo.scale-200.png -------------------------------------------------------------------------------- /XAML SwapChainPanel DirectX interop sample/C# and C++/UWPSwapChainPanel/Assets/microsoft-sdk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/XAML SwapChainPanel DirectX interop sample/C# and C++/UWPSwapChainPanel/Assets/microsoft-sdk.png -------------------------------------------------------------------------------- /XAML SwapChainPanel DirectX interop sample/C# and C++/UWPSwapChainPanel/Assets/placeholder-sdk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/XAML SwapChainPanel DirectX interop sample/C# and C++/UWPSwapChainPanel/Assets/placeholder-sdk.png -------------------------------------------------------------------------------- /XAML SwapChainPanel DirectX interop sample/C# and C++/UWPSwapChainPanel/Assets/windows-sdk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/XAML SwapChainPanel DirectX interop sample/C# and C++/UWPSwapChainPanel/Assets/windows-sdk.png -------------------------------------------------------------------------------- /XAML SwapChainPanel DirectX interop sample/C# and C++/UWPSwapChainPanel/Converters/ReverseBooleanConverter.cs: -------------------------------------------------------------------------------- 1 | //********************************************************* 2 | // 3 | // Copyright (c) Microsoft. All rights reserved. 4 | // 5 | //********************************************************* 6 | 7 | using System; 8 | using System.Collections.Generic; 9 | using System.Linq; 10 | using System.Text; 11 | using System.Threading.Tasks; 12 | using Windows.UI; 13 | using Windows.UI.Xaml; 14 | using Windows.UI.Xaml.Data; 15 | using Windows.UI.Xaml.Media; 16 | 17 | namespace SwapChainPanel 18 | { 19 | /// 20 | /// An that negates a value. 21 | /// 22 | class ReverseBooleanConverter : IValueConverter 23 | { 24 | public object Convert(object value, Type targetType, object parameter, string language) 25 | { 26 | return (value is bool) ? !(bool)value : false; 27 | } 28 | 29 | public object ConvertBack(object value, Type targetType, object parameter, string language) 30 | { 31 | return (value is bool) ? !(bool)value : false; 32 | } 33 | 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /XAML SwapChainPanel DirectX interop sample/README.md: -------------------------------------------------------------------------------- 1 | VS2017 UWP version of [XAML SwapChainPanel C# to C++ Interop Sample](https://code.msdn.microsoft.com/XAML-SwapChainPanel-00cb688b) 2 | -------------------------------------------------------------------------------- /XAML SwapChainPanel DirectX interop sample/description/9d0720cf-bf50-484c-bf6c-77cf57a10f7cCombined.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/XAML SwapChainPanel DirectX interop sample/description/9d0720cf-bf50-484c-bf6c-77cf57a10f7cCombined.css -------------------------------------------------------------------------------- /XAML SwapChainPanel DirectX interop sample/description/Combined.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/XAML SwapChainPanel DirectX interop sample/description/Combined.css -------------------------------------------------------------------------------- /cout/App.xaml: -------------------------------------------------------------------------------- 1 |  7 | 8 | 9 | -------------------------------------------------------------------------------- /cout/App.xaml.h: -------------------------------------------------------------------------------- 1 | // 2 | // App.xaml.h 3 | // Declaration of the App class. 4 | // 5 | 6 | #pragma once 7 | 8 | #include "App.g.h" 9 | #include "OutputDebugStringBuf.h" 10 | 11 | namespace cout 12 | { 13 | /// 14 | /// Provides application-specific behavior to supplement the default Application class. 15 | /// 16 | ref class App sealed 17 | { 18 | protected: 19 | virtual void OnLaunched(Windows::ApplicationModel::Activation::LaunchActivatedEventArgs^ e) override; 20 | 21 | internal: 22 | App(); 23 | 24 | private: 25 | void OnSuspending(Platform::Object^ sender, Windows::ApplicationModel::SuspendingEventArgs^ e); 26 | void OnNavigationFailed(Platform::Object ^sender, Windows::UI::Xaml::Navigation::NavigationFailedEventArgs ^e); 27 | 28 | #ifdef _DEBUG 29 | // overrides std::cout and std::wcout to use DebugOutputString 30 | OutputDebugStringBufA m_charDebugOutput; 31 | OutputDebugStringBufW m_wcharDebugOutput; 32 | #endif 33 | }; 34 | } 35 | -------------------------------------------------------------------------------- /cout/Assets/LockScreenLogo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/cout/Assets/LockScreenLogo.scale-200.png -------------------------------------------------------------------------------- /cout/Assets/SplashScreen.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/cout/Assets/SplashScreen.scale-200.png -------------------------------------------------------------------------------- /cout/Assets/Square150x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/cout/Assets/Square150x150Logo.scale-200.png -------------------------------------------------------------------------------- /cout/Assets/Square44x44Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/cout/Assets/Square44x44Logo.scale-200.png -------------------------------------------------------------------------------- /cout/Assets/Square44x44Logo.targetsize-24_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/cout/Assets/Square44x44Logo.targetsize-24_altform-unplated.png -------------------------------------------------------------------------------- /cout/Assets/StoreLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/cout/Assets/StoreLogo.png -------------------------------------------------------------------------------- /cout/Assets/Wide310x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/cout/Assets/Wide310x150Logo.scale-200.png -------------------------------------------------------------------------------- /cout/Dll1/Dll1.cpp: -------------------------------------------------------------------------------- 1 | #include "pch.h" 2 | #include "Dll1.h" 3 | #include 4 | 5 | DLL_EXPORT void dll_cout_test() 6 | { 7 | std::cout << "***DLL1: Hello world!***" << std::endl; 8 | std::wcout << L"***DLL1: Hello wide world!***" << std::endl; 9 | } 10 | -------------------------------------------------------------------------------- /cout/Dll1/Dll1.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #if defined(_WINDLL) 4 | #define DLL_EXPORT __declspec(dllexport) 5 | #else /* use a DLL library */ 6 | #define DLL_EXPORT __declspec(dllimport) 7 | #endif 8 | 9 | DLL_EXPORT void dll_cout_test(); 10 | -------------------------------------------------------------------------------- /cout/Dll1/Dll1.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 6 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tga;tiff;tif;png;wav;mfcribbon-ms 7 | 8 | 9 | -------------------------------------------------------------------------------- /cout/Dll1/dllmain.cpp: -------------------------------------------------------------------------------- 1 | #include "pch.h" 2 | 3 | BOOL APIENTRY DllMain(HMODULE /* hModule */, DWORD ul_reason_for_call, LPVOID /* lpReserved */) 4 | { 5 | switch (ul_reason_for_call) 6 | { 7 | case DLL_PROCESS_ATTACH: 8 | case DLL_THREAD_ATTACH: 9 | case DLL_THREAD_DETACH: 10 | case DLL_PROCESS_DETACH: 11 | break; 12 | } 13 | return TRUE; 14 | } 15 | -------------------------------------------------------------------------------- /cout/Dll1/pch.cpp: -------------------------------------------------------------------------------- 1 | #include "pch.h" 2 | -------------------------------------------------------------------------------- /cout/Dll1/pch.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "targetver.h" 4 | 5 | #ifndef WIN32_LEAN_AND_MEAN 6 | #define WIN32_LEAN_AND_MEAN 7 | #endif 8 | 9 | #include 10 | -------------------------------------------------------------------------------- /cout/Dll1/targetver.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | // Including SDKDDKVer.h defines the highest available Windows platform. 4 | 5 | // If you wish to build your application for a previous Windows platform, include WinSDKVer.h and 6 | // set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. 7 | 8 | #include 9 | -------------------------------------------------------------------------------- /cout/Lib1/Lib1.cpp: -------------------------------------------------------------------------------- 1 | #include "pch.h" 2 | #include "Lib1.h" 3 | 4 | #include 5 | 6 | 7 | void lib_cout_test() 8 | { 9 | std::cout << "***Lib1: Hello world!***" << std::endl; 10 | std::wcout << L"***Lib1: Hello wide world!***" << std::endl; 11 | } 12 | 13 | -------------------------------------------------------------------------------- /cout/Lib1/Lib1.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | void lib_cout_test(); 4 | -------------------------------------------------------------------------------- /cout/Lib1/Lib1.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 6 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tga;tiff;tif;png;wav;mfcribbon-ms 7 | 8 | 9 | -------------------------------------------------------------------------------- /cout/Lib1/pch.cpp: -------------------------------------------------------------------------------- 1 | #include "pch.h" 2 | -------------------------------------------------------------------------------- /cout/Lib1/pch.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "targetver.h" 4 | 5 | #ifndef WIN32_LEAN_AND_MEAN 6 | #define WIN32_LEAN_AND_MEAN 7 | #endif 8 | 9 | #include 10 | -------------------------------------------------------------------------------- /cout/Lib1/targetver.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | // Including SDKDDKVer.h defines the highest available Windows platform. 4 | 5 | // If you wish to build your application for a previous Windows platform, include WinSDKVer.h and 6 | // set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. 7 | 8 | #include 9 | -------------------------------------------------------------------------------- /cout/MainPage.xaml: -------------------------------------------------------------------------------- 1 |  9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /cout/MainPage.xaml.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // MainPage.xaml.cpp 3 | // Implementation of the MainPage class. 4 | // 5 | 6 | #include "pch.h" 7 | #include "MainPage.xaml.h" 8 | #include 9 | 10 | using namespace cout; 11 | 12 | using namespace Platform; 13 | using namespace Windows::Foundation; 14 | using namespace Windows::Foundation::Collections; 15 | using namespace Windows::UI::Xaml; 16 | using namespace Windows::UI::Xaml::Controls; 17 | using namespace Windows::UI::Xaml::Controls::Primitives; 18 | using namespace Windows::UI::Xaml::Data; 19 | using namespace Windows::UI::Xaml::Input; 20 | using namespace Windows::UI::Xaml::Media; 21 | using namespace Windows::UI::Xaml::Navigation; 22 | 23 | // The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=402352&clcid=0x409 24 | 25 | MainPage::MainPage() 26 | { 27 | InitializeComponent(); 28 | std::cout << "***MainPage.xaml.cpp: Hello world!***" << std::endl; 29 | std::wcout << L"***MainPage.xaml.cpp: Hello wide world!***" << std::endl; 30 | } 31 | -------------------------------------------------------------------------------- /cout/MainPage.xaml.h: -------------------------------------------------------------------------------- 1 | // 2 | // MainPage.xaml.h 3 | // Declaration of the MainPage class. 4 | // 5 | 6 | #pragma once 7 | 8 | #include "MainPage.g.h" 9 | 10 | namespace cout 11 | { 12 | /// 13 | /// An empty page that can be used on its own or navigated to within a Frame. 14 | /// 15 | public ref class MainPage sealed 16 | { 17 | public: 18 | MainPage(); 19 | 20 | }; 21 | } 22 | -------------------------------------------------------------------------------- /cout/README.md: -------------------------------------------------------------------------------- 1 | # Using std::cout and std::wcout in a Windows 10 UWP App 2 | 3 | Based on http://stackoverflow.com/questions/5248704/how-to-redirect-stdout-to-output-window-from-visual-studio 4 | 5 | In order to override std::cout and std::wcout to use OutputDebugString in a C++ UWP app, do the following: 6 | 7 | 1. Add to App.xaml.h 8 | ```c++ 9 | #include "OutputDebugStringBuf.h" 10 | ``` 11 | 12 | 1. Add to App.xaml.h 13 | ```c++ 14 | #ifdef _DEBUG 15 | private: 16 | // overrides std::cout and std::wcout to use DebugOutputString 17 | OutputDebugStringBufA m_charDebugOutput; 18 | OutputDebugStringBufW m_wcharDebugOutput; 19 | #endif 20 | ``` 21 | 22 | 1. Use std::cout and std::wcout normally in the app. 23 | ```c++ 24 | std::cout << "***App.xaml.cpp: Hello world!***" << std::endl; 25 | 26 | std::wcout << L"***App.xaml.cpp: Hello wide world!***" << std::endl; 27 | ``` 28 | 29 | For example using the above code in App.xaml.cpp will produce the following output in the Visual Studio Debug output window: 30 | ```c++ 31 | ***App.xaml.cpp: Hello world!*** 32 | ***App.xaml.cpp: Hello wide world!*** 33 | ``` 34 | 35 | -------------------------------------------------------------------------------- /cout/WindowsRuntimeComponent1/Class1.cpp: -------------------------------------------------------------------------------- 1 | #include "pch.h" 2 | #include "Class1.h" 3 | 4 | #include 5 | 6 | 7 | using namespace WindowsRuntimeComponent1; 8 | using namespace Platform; 9 | 10 | Class1::Class1() 11 | { 12 | std::cout << "***WindowsRuntimeComponent1::Class1: Hello world!***" << std::endl; 13 | std::wcout << L"***WindowsRuntimeComponent1::Class1: Hello wide world!***" << std::endl; 14 | } 15 | -------------------------------------------------------------------------------- /cout/WindowsRuntimeComponent1/Class1.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | namespace WindowsRuntimeComponent1 4 | { 5 | public ref class Class1 sealed 6 | { 7 | public: 8 | Class1(); 9 | }; 10 | } 11 | -------------------------------------------------------------------------------- /cout/WindowsRuntimeComponent1/WindowsRuntimeComponent1.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 02c1eeb5-e117-4154-8a3e-99450b9381a3 6 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tga;tiff;tif;png;wav;mfcribbon-ms 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /cout/WindowsRuntimeComponent1/pch.cpp: -------------------------------------------------------------------------------- 1 | #include "pch.h" 2 | -------------------------------------------------------------------------------- /cout/WindowsRuntimeComponent1/pch.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | -------------------------------------------------------------------------------- /cout/cout_TemporaryKey.pfx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/cout/cout_TemporaryKey.pfx -------------------------------------------------------------------------------- /cout/pch.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // pch.cpp 3 | // Include the standard header and generate the precompiled header. 4 | // 5 | 6 | #include "pch.h" 7 | -------------------------------------------------------------------------------- /cout/pch.h: -------------------------------------------------------------------------------- 1 | // 2 | // pch.h 3 | // Header for standard system include files. 4 | // 5 | 6 | #pragma once 7 | 8 | #include 9 | #include 10 | 11 | #include "App.xaml.h" 12 | -------------------------------------------------------------------------------- /uwp-cpp-cx.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/uwp-cpp-cx.pptx -------------------------------------------------------------------------------- /winrt-components.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stammen/uwp-cpp-examples/b89b8e31fc115989ce1521b221fc94541b6f5cf1/winrt-components.pptx --------------------------------------------------------------------------------