1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00
XFXFramework/include/Graphics/DisplayMode.h

42 lines
912 B
C
Raw Normal View History

/********************************************************
* DisplayMode.h *
* *
* XFX DisplayMode structure definition file *
* Copyright <EFBFBD> XFX Team. All Rights Reserved *
********************************************************/
#ifndef _XFX_GRAPHICS_DISPLAYMODE_
#define _XFX_GRAPHICS_DISPLAYMODE_
#include "Enums.h"
namespace XFX
{
struct Rectangle;
namespace Graphics
{
/// <summary>
/// Describes the display mode.
/// </summary>
struct DisplayMode
{
public:
float AspectRatio();
int Height;
SurfaceFormat_t Format;
int RefreshRate;
Rectangle TitleSafeArea();
int Width;
DisplayMode();
bool Equals(const DisplayMode other);
int GetHashCode();
bool operator!=(const DisplayMode other);
bool operator==(const DisplayMode other);
};
}
}
#endif //_XFX_GRAPHICS_DISPLAYMODE_