1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00
XFXFramework/include/Graphics/GraphicsAdapter.h
Halofreak1990 40c4811c04 Got everything to compile again.
Began transforming of current API to represent XNA 4.0, which is cleaner.
Dictionary<TKey, TValue> should now work (sort of-- need to implement resizing and enumerating)
Currently hunting down GraphicsDevice initialization
Up next: (hopefully successful) rendering of primitives
2012-09-28 20:36:02 +00: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_