2010-12-04 16:14:34 +00:00
|
|
|
|
/********************************************************
|
|
|
|
|
* DisplayMode.h *
|
|
|
|
|
* *
|
|
|
|
|
* XFX DisplayMode structure definition file *
|
|
|
|
|
* Copyright <EFBFBD> XFX Team. All Rights Reserved *
|
|
|
|
|
********************************************************/
|
2010-12-27 01:01:25 +00:00
|
|
|
|
#ifndef _XFX_GRAPHICS_DISPLAYMODE_
|
|
|
|
|
#define _XFX_GRAPHICS_DISPLAYMODE_
|
2010-12-04 16:14:34 +00:00
|
|
|
|
|
|
|
|
|
#include "Enums.h"
|
|
|
|
|
|
|
|
|
|
namespace XFX
|
|
|
|
|
{
|
|
|
|
|
struct Rectangle;
|
|
|
|
|
|
|
|
|
|
namespace Graphics
|
|
|
|
|
{
|
2012-03-29 22:02:43 +00:00
|
|
|
|
// Describes the display mode.
|
2010-12-04 16:14:34 +00:00
|
|
|
|
struct DisplayMode
|
|
|
|
|
{
|
2012-03-29 22:02:43 +00:00
|
|
|
|
float AspectRatio() const;
|
2010-12-04 16:14:34 +00:00
|
|
|
|
int Height;
|
|
|
|
|
SurfaceFormat_t Format;
|
|
|
|
|
int RefreshRate;
|
2012-03-29 22:02:43 +00:00
|
|
|
|
Rectangle TitleSafeArea() const;
|
2010-12-04 16:14:34 +00:00
|
|
|
|
int Width;
|
|
|
|
|
|
|
|
|
|
DisplayMode();
|
2012-03-29 22:02:43 +00:00
|
|
|
|
bool Equals(const DisplayMode other) const;
|
|
|
|
|
int GetHashCode() const;
|
2010-12-04 16:14:34 +00:00
|
|
|
|
|
2012-03-29 22:02:43 +00:00
|
|
|
|
bool operator!=(const DisplayMode other) const;
|
|
|
|
|
bool operator==(const DisplayMode other) const;
|
2010-12-04 16:14:34 +00:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2010-12-27 01:01:25 +00:00
|
|
|
|
#endif //_XFX_GRAPHICS_DISPLAYMODE_
|