mirror of
https://github.com/Halofreak1990/XFXFramework
synced 2024-12-26 13:49:34 +01:00
64 lines
1.7 KiB
C++
64 lines
1.7 KiB
C++
/********************************************************
|
|
* PresentationParameters.h *
|
|
* *
|
|
* XFX PresentationParameters definition file *
|
|
* Copyright © XFX Team. All Rights Reserved *
|
|
********************************************************/
|
|
#ifndef _XFX_GRAPHICS_PRESENTATIONPARAMETERS_
|
|
#define _XFX_GRAPHICS_PRESENTATIONPARAMETERS_
|
|
|
|
#include <System/Interfaces.h>
|
|
#include "Enums.h"
|
|
|
|
using namespace System;
|
|
|
|
namespace XFX
|
|
{
|
|
namespace Graphics
|
|
{
|
|
// Contains presentation parameters.
|
|
class PresentationParameters : public IDisposable, virtual Object
|
|
{
|
|
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;
|
|
|
|
#if !ENABLE_XBOX //Only valid on Linux
|
|
IntPtr DeviceWindowHandle;
|
|
#endif
|
|
|
|
bool EnableAutoDepthStencil;
|
|
int FullScreenRefreshRateInHz;
|
|
bool IsFullScreen;
|
|
int MultiSampleQuality;
|
|
MultiSampleType_t MultiSampleType_;
|
|
PresentInterval_t PresentationInterval;
|
|
PresentOptions_t PresentOptions_;
|
|
SwapEffect_t SwapEffect_;
|
|
|
|
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;
|
|
};
|
|
}
|
|
}
|
|
|
|
#endif //_XFX_GRAPHICS_PRESENTATIONPARAMETERS_
|