mirror of
https://github.com/Halofreak1990/XFXFramework
synced 2024-12-26 13:49:34 +01:00
54 lines
1.6 KiB
C++
54 lines
1.6 KiB
C++
/*****************************************************************************
|
|
* DepthStencilState.h *
|
|
* *
|
|
* XFX::Graphics::DepthStencilState class definition file *
|
|
* Copyright (c) XFX Team. All Rights Reserved *
|
|
*****************************************************************************/
|
|
#ifndef _XFX_GRAPHICS_DEPTHSTENCILSTATE_
|
|
#define _XFX_GRAPHICS_DEPTHSTENCILSTATE_
|
|
|
|
#include "GraphicsResource.h"
|
|
|
|
namespace XFX
|
|
{
|
|
namespace Graphics
|
|
{
|
|
/**
|
|
* 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 const Type& GetType();
|
|
|
|
bool operator==(const DepthStencilState& right) const;
|
|
bool operator!=(const DepthStencilState& right) const;
|
|
};
|
|
}
|
|
}
|
|
|
|
#endif //_XFX_GRAPHICS_DEPTHSTENCILSTATE_
|