1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00
XFXFramework/include/Graphics/DepthStencilState.h

54 lines
1.6 KiB
C
Raw Normal View History

/*****************************************************************************
* DepthStencilState.h *
* *
* XFX::Graphics::DepthStencilState definition file *
* Copyright (c) XFX Team. All Rights Reserved *
*****************************************************************************/
#ifndef _XFX_GRAPHICS_DEPTHSTENCILSTATE_
#define _XFX_GRAPHICS_DEPTHSTENCILSTATE_
#include "GraphicsResource.h"
namespace XFX
{
namespace Graphics
{
2013-07-11 20:00:07 +02:00
/**
* Contains depth-stencil state for the device.
*/
class DepthStencilState : public GraphicsResource
{
private:
StencilOperation_t counterClockwiseStencilDepthBufferFail;
StencilOperation_t counterClockwiseStencilFail;
CompareFunction_t counterClockwiseStencilFunction;
bool isBound;
protected:
void Dispose(bool disposing);
public:
static const DepthStencilState Default;
static const DepthStencilState DepthRead;
static const DepthStencilState None;
StencilOperation_t getCounterClockwiseStencilDepthBufferFail() const;
void setCounterClockwiseStencilDepthBufferFail(StencilOperation_t value);
StencilOperation_t getCounterClockwiseStencilFail() const;
void setCounterClockwiseStencilFail(StencilOperation_t value);
CompareFunction_t getCounterClockwiseStencilFunction() const;
void setCounterClockwiseStencilFunction(CompareFunction_t value);
DepthStencilState();
~DepthStencilState();
static int GetType();
bool operator==(const DepthStencilState& right) const;
bool operator!=(const DepthStencilState& right) const;
};
}
}
#endif //_XFX_GRAPHICS_DEPTHSTENCILSTATE_