#pragma once #include "Common\StepTimer.h" #include "Common\DeviceResources.h" #include "Content\Sample3DSceneRenderer.h" #include "Content\SampleFpsTextRenderer.h" // Renders Direct2D and 3D content on the screen. namespace $safeprojectname$ { class $safeprojectname$Main : public DX::IDeviceNotify { public: $safeprojectname$Main(const std::shared_ptr& deviceResources); ~$safeprojectname$Main(); void CreateWindowSizeDependentResources(); void Update(); bool Render(); // IDeviceNotify virtual void OnDeviceLost(); virtual void OnDeviceRestored(); private: // Cached pointer to device resources. std::shared_ptr m_deviceResources; // TODO: Replace with your own content renderers. std::unique_ptr m_sceneRenderer; std::unique_ptr m_fpsTextRenderer; // Rendering loop timer. DX::StepTimer m_timer; }; }