// XXX: For some reason, this file must not be compiled // XXX: Ask MS why #if 0 #pragma once #include "DirectXHelper.h" #include #include #include // Helper class that initializes DirectX APIs for 3D rendering. ref class DirectXBase abstract { internal: DirectXBase(); public: virtual void Initialize(Windows::UI::Core::CoreWindow^ window, float dpi); virtual void HandleDeviceLost(); virtual void CreateDeviceResources(); virtual void CreateWindowSizeDependentResources(); virtual void UpdateForWindowSizeChange(); virtual void ReleaseResourcesForSuspending(); virtual void Present(); virtual float ConvertDipsToPixels(float dips); virtual void SetDpi(float dpi); protected private: // Direct3D Objects. Microsoft::WRL::ComPtr m_d3dDevice; Microsoft::WRL::ComPtr m_d3dContext; Microsoft::WRL::ComPtr m_swapChain; Microsoft::WRL::ComPtr m_renderTargetView; Microsoft::WRL::ComPtr m_depthStencilView; // Cached renderer properties. D3D_FEATURE_LEVEL m_featureLevel; Windows::Foundation::Size m_renderTargetSize; Windows::Foundation::Rect m_windowBounds; Platform::Agile m_window; float m_dpi; }; #endif // 0