2013-07-12 21:30:13 +02:00
|
|
|
/*****************************************************************************
|
|
|
|
* GraphicsAdapter.h *
|
|
|
|
* *
|
|
|
|
* XFX::Graphics::GraphicsAdapter class definition file *
|
|
|
|
* Copyright (c) XFX Team. All Rights Reserved *
|
|
|
|
*****************************************************************************/
|
2013-05-05 18:18:41 +02:00
|
|
|
#ifndef _XFX_GRAPHICS_GRAPHICSADAPTER_
|
|
|
|
#define _XFX_GRAPHICS_GRAPHICSADAPTER_
|
|
|
|
|
|
|
|
#include <System/Types.h>
|
|
|
|
#include <System/Interfaces.h>
|
|
|
|
|
|
|
|
#include "DisplayMode.h"
|
|
|
|
#include "DisplayModeCollection.h"
|
|
|
|
#include "Enums.h"
|
|
|
|
|
|
|
|
using namespace System;
|
|
|
|
|
|
|
|
namespace XFX
|
|
|
|
{
|
|
|
|
namespace Graphics
|
|
|
|
{
|
2013-07-12 21:30:13 +02:00
|
|
|
/**
|
|
|
|
* Provides methods to retrieve and manipulate graphics adapters.
|
|
|
|
*/
|
2013-05-05 18:18:41 +02:00
|
|
|
class GraphicsAdapter : public IDisposable, public Object
|
|
|
|
{
|
|
|
|
protected:
|
|
|
|
void Dispose(bool disposing);
|
|
|
|
|
|
|
|
public:
|
|
|
|
DisplayMode CurrentDisplayMode();
|
|
|
|
|
|
|
|
const char* Description();
|
|
|
|
int DeviceId();
|
|
|
|
const char* DeviceName();
|
|
|
|
const char* DriverDLL();
|
|
|
|
float DriverVersion();
|
|
|
|
bool IsDefaultAdapter();
|
|
|
|
int VendorId();
|
|
|
|
bool IsWideScreen();
|
|
|
|
DisplayModeCollection SupportedDisplayModes();
|
|
|
|
|
|
|
|
virtual ~GraphicsAdapter();
|
|
|
|
|
|
|
|
void Dispose();
|
2013-05-31 15:58:00 +02:00
|
|
|
bool Equals(Object const * const obj) const;
|
2013-05-05 18:18:41 +02:00
|
|
|
bool Equals(const GraphicsAdapter obj) const;
|
|
|
|
int GetHashCode() const;
|
2013-07-12 21:30:13 +02:00
|
|
|
static const Type& GetType();
|
2013-05-05 18:18:41 +02:00
|
|
|
bool QueryBackBufferFormat(SurfaceFormat_t format, DepthFormat_t depthFormat, int multiSampleCount, out SurfaceFormat_t selectedFormat, out DepthFormat_t selectedDepthFormat, out int selectedMultiSampleCount) const;
|
|
|
|
bool QueryRenderTargetFormat(SurfaceFormat_t format, DepthFormat_t depthFormat, int multiSampleCount, out SurfaceFormat_t selectedFormat, out DepthFormat_t selectedDepthFormat, out int selectedMultiSampleCount) const;
|
|
|
|
|
|
|
|
bool operator!=(const GraphicsAdapter& other) const;
|
|
|
|
bool operator==(const GraphicsAdapter& other) const;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //_XFX_GRAPHICS_GRAPHICSADAPTER_
|