forked from MonoGame/MonoGame
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIGraphicsDeviceManager.cs
More file actions
30 lines (26 loc) · 962 Bytes
/
IGraphicsDeviceManager.cs
File metadata and controls
30 lines (26 loc) · 962 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// 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();
}
}