1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00
XFXFramework/include/Graphics/DepthStencilState.h
Tom Lint b0dd58a08b Added file comments and TypeInfos
Added some implementations
Added auto_ptr and gc_ptr for easier memory management
2013-08-20 11:14:55 +02:00

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_