Files
LuaCsForBarotraumaEP/Libraries/MonoGame.Framework/Src/MonoGame.Framework/IGraphicsDeviceManager.cs
2019-06-25 16:00:44 +03:00

31 lines
932 B
C#

// 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();
}
}