mirror of
https://github.com/Halofreak1990/XFXFramework
synced 2024-12-26 13:49:34 +01:00
WARNING!!! This revision cannot compile correctly. It is updated to reflect the many changes within the XFX project.
42 lines
873 B
C++
42 lines
873 B
C++
/********************************************************
|
|
* DisplayMode.h *
|
|
* *
|
|
* XFX DisplayMode structure definition file *
|
|
* Copyright © 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_
|