1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00
XFXFramework/include/Graphics/GraphicsAdapter.h
Tom Lint 52ef14a94b Transition from SVN to Git
Added implicit conversion to base types to all primary types (UInt32 et
al)
Added implicit conversion from System::String to const char*
2013-05-05 18:18:41 +02:00

59 lines
1.8 KiB
C++

/********************************************************
* GraphicsAdapter.h *
* *
* XFX GraphicsAdapter definition file *
* Copyright © 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(const Object* obj) const;
bool Equals(const GraphicsAdapter obj) const;
int GetHashCode() const;
int GetType() const;
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_