MonoGame.Framework/IGraphicsDeviceManager.cs
Rama develop · réplica de lectura del repositorio original.
// 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
{
/// <summary>
/// Used by the platform code to control the graphics device.
/// </summary>
public interface IGraphicsDeviceManager
{
/// <summary>
/// Called at the start of rendering a frame.
/// </summary>
/// <returns>Returns true if the frame should be rendered.</returns>
bool BeginDraw();
/// <summary>
/// Called to create the graphics device.
/// </summary>
/// <remarks>Does nothing if the graphics device is already created.</remarks>
void CreateDevice();
/// <summary>
/// Called after rendering to present the frame to the screen.
/// </summary>
void EndDraw();
}
}