mirror of
https://github.com/Halofreak1990/XFXFramework
synced 2024-12-26 13:49:34 +01:00
39 lines
901 B
C++
39 lines
901 B
C++
/********************************************************
|
|
* DisplayMode.h *
|
|
* *
|
|
* XFX DisplayMode structure definition file *
|
|
* Copyright © XFX Team. All Rights Reserved *
|
|
********************************************************/
|
|
#ifndef _XFX_GRAPHICS_DISPLAYMODE_
|
|
#define _XFX_GRAPHICS_DISPLAYMODE_
|
|
|
|
#include "Enums.h"
|
|
|
|
namespace XFX
|
|
{
|
|
struct Rectangle;
|
|
|
|
namespace Graphics
|
|
{
|
|
// Describes the display mode.
|
|
struct DisplayMode
|
|
{
|
|
float AspectRatio() const;
|
|
int Height;
|
|
SurfaceFormat_t Format;
|
|
int RefreshRate;
|
|
Rectangle TitleSafeArea() const;
|
|
int Width;
|
|
|
|
DisplayMode();
|
|
bool Equals(const DisplayMode other) const;
|
|
int GetHashCode() const;
|
|
|
|
bool operator!=(const DisplayMode other) const;
|
|
bool operator==(const DisplayMode other) const;
|
|
};
|
|
}
|
|
}
|
|
|
|
#endif //_XFX_GRAPHICS_DISPLAYMODE_
|