1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00
XFXFramework/include/Graphics/GraphicsAdapter.h

61 lines
1.9 KiB
C
Raw Permalink Normal View History

/*****************************************************************************
* GraphicsAdapter.h *
* *
* XFX::Graphics::GraphicsAdapter class definition file *
* Copyright (c) XFX Team. All Rights Reserved *
*****************************************************************************/
#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
{
/**
* Provides methods to retrieve and manipulate graphics adapters.
*/
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();
bool Equals(Object const * const obj) const;
bool Equals(const GraphicsAdapter obj) const;
int GetHashCode() const;
static const Type& GetType();
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_