mirror of
https://github.com/Halofreak1990/XFXFramework
synced 2024-12-26 13:49:34 +01:00
WARNING!!! This revision cannot compile correctly. It is updated to reflect the many changes within the XFX project.
52 lines
1.2 KiB
C++
52 lines
1.2 KiB
C++
#ifndef _DEPTHSTENCILBUFFER_
|
|
#define _DEPTHSTENCILBUFFER_
|
|
|
|
#include "../System.h"
|
|
#include "Enums.h"
|
|
|
|
using namespace System;
|
|
|
|
namespace XFX
|
|
{
|
|
namespace Graphics
|
|
{
|
|
class GraphicsDevice;
|
|
|
|
/// <summary>
|
|
/// Queries and prepares depth stencil buffers.
|
|
/// </summary>
|
|
class DepthStencilBuffer : IDisposable
|
|
{
|
|
private:
|
|
GraphicsDevice *_graphicsDevice;
|
|
int _width;
|
|
int _height;
|
|
DepthFormat_t _format;
|
|
int isDisposed;
|
|
int _multiSampleQuality;
|
|
MultiSampleType_t _multiSampleType;
|
|
|
|
protected:
|
|
virtual void Dispose(int __p1);
|
|
|
|
public:
|
|
DepthFormat_t Format();
|
|
GraphicsDevice GraphicsDevice_();
|
|
int IsDisposed();
|
|
int MultiSampleQuality();
|
|
MultiSampleType_t MultiSampleType_();
|
|
int Height();
|
|
int Width();
|
|
|
|
DepthStencilBuffer(GraphicsDevice &graphicsDevice, int width, int height, DepthFormat_t format);
|
|
DepthStencilBuffer(GraphicsDevice &graphicsDevice, int width, int height, DepthFormat_t format, MultiSampleType_t multiSampleType, int multiSampleQuality);
|
|
DepthStencilBuffer();
|
|
virtual ~DepthStencilBuffer();
|
|
|
|
void Dispose();
|
|
};
|
|
}
|
|
}
|
|
|
|
#endif //_DEPTHSTENCILBUFFER_
|