mirror of
https://github.com/Halofreak1990/XFXFramework
synced 2024-12-26 13:49:34 +01:00
42 lines
873 B
C
42 lines
873 B
C
|
/********************************************************
|
|||
|
* DisplayMode.h *
|
|||
|
* *
|
|||
|
* XFX DisplayMode structure definition file *
|
|||
|
* Copyright <EFBFBD> XFX Team. All Rights Reserved *
|
|||
|
********************************************************/
|
|||
|
#ifndef _DISPLAYMODE_
|
|||
|
#define _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 //_DISPLAYMODE_
|