2010-12-04 16:14:34 +00:00
|
|
|
|
/********************************************************
|
|
|
|
|
* PresentationParameters.h *
|
|
|
|
|
* *
|
|
|
|
|
* XFX PresentationParameters definition file *
|
|
|
|
|
* Copyright <EFBFBD> XFX Team. All Rights Reserved *
|
|
|
|
|
********************************************************/
|
2011-01-16 00:47:37 +00:00
|
|
|
|
#ifndef _XFX_GRAPHICS_PRESENTATIONPARAMETERS_
|
|
|
|
|
#define _XFX_GRAPHICS_PRESENTATIONPARAMETERS_
|
2010-12-04 16:14:34 +00:00
|
|
|
|
|
2012-03-29 22:02:43 +00:00
|
|
|
|
#include <System/Interfaces.h>
|
2010-12-04 16:14:34 +00:00
|
|
|
|
#include "Enums.h"
|
|
|
|
|
|
|
|
|
|
using namespace System;
|
|
|
|
|
|
|
|
|
|
namespace XFX
|
|
|
|
|
{
|
|
|
|
|
namespace Graphics
|
|
|
|
|
{
|
2012-03-29 22:02:43 +00:00
|
|
|
|
// Contains presentation parameters.
|
|
|
|
|
class PresentationParameters : public IDisposable, virtual Object
|
2010-12-04 16:14:34 +00:00
|
|
|
|
{
|
2012-03-29 22:02:43 +00:00
|
|
|
|
private:
|
|
|
|
|
bool disposed;
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
virtual void Dispose(bool disposing);
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
DepthFormat_t AutoDepthStencilFormat;
|
|
|
|
|
int BackBufferCount;
|
|
|
|
|
SurfaceFormat_t BackBufferFormat;
|
|
|
|
|
int BackBufferHeight;
|
|
|
|
|
int BackBufferWidth;
|
|
|
|
|
static const int DefaultPresentRate;
|
2010-12-04 16:14:34 +00:00
|
|
|
|
|
|
|
|
|
#if !ENABLE_XBOX //Only valid on Linux
|
2012-03-29 22:02:43 +00:00
|
|
|
|
IntPtr DeviceWindowHandle;
|
2010-12-04 16:14:34 +00:00
|
|
|
|
#endif
|
|
|
|
|
|
2012-03-29 22:02:43 +00:00
|
|
|
|
bool EnableAutoDepthStencil;
|
|
|
|
|
int FullScreenRefreshRateInHz;
|
|
|
|
|
bool IsFullScreen;
|
|
|
|
|
int MultiSampleQuality;
|
|
|
|
|
MultiSampleType_t MultiSampleType_;
|
|
|
|
|
PresentInterval_t PresentationInterval;
|
|
|
|
|
PresentOptions_t PresentOptions_;
|
|
|
|
|
SwapEffect_t SwapEffect_;
|
2010-12-04 16:14:34 +00:00
|
|
|
|
|
2012-03-29 22:02:43 +00:00
|
|
|
|
virtual ~PresentationParameters();
|
|
|
|
|
PresentationParameters();
|
|
|
|
|
|
|
|
|
|
void Clear();
|
|
|
|
|
PresentationParameters Clone() const;
|
|
|
|
|
void Dispose();
|
|
|
|
|
bool Equals(const PresentationParameters other) const;
|
|
|
|
|
|
|
|
|
|
bool operator!=(const PresentationParameters other) const;
|
|
|
|
|
bool operator==(const PresentationParameters other) const;
|
2010-12-04 16:14:34 +00:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2011-01-16 00:47:37 +00:00
|
|
|
|
#endif //_XFX_GRAPHICS_PRESENTATIONPARAMETERS_
|