// MIT License - Copyright (C) The Mono.Xna Team // This file is subject to the terms and conditions defined in // file 'LICENSE.txt', which is part of this source code package. namespace Microsoft.Xna.Framework { /// /// Used by the platform code to control the graphics device. /// public interface IGraphicsDeviceManager { /// /// Called at the start of rendering a frame. /// /// Returns true if the frame should be rendered. bool BeginDraw(); /// /// Called to create the graphics device. /// /// Does nothing if the graphics device is already created. void CreateDevice(); /// /// Called after rendering to present the frame to the screen. /// void EndDraw(); } }