1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00
XFXFramework/include/Graphics/RasterizerState.h
Halofreak1990 40c4811c04 Got everything to compile again.
Began transforming of current API to represent XNA 4.0, which is cleaner.
Dictionary<TKey, TValue> should now work (sort of-- need to implement resizing and enumerating)
Currently hunting down GraphicsDevice initialization
Up next: (hopefully successful) rendering of primitives
2012-09-28 20:36:02 +00:00

61 lines
1.7 KiB
C++

/********************************************************
* RasterizerState.h *
* *
* XFX::Graphics::RasterizerState definition file *
* Copyright © XFX Team. All Rights Reserved *
********************************************************/
#ifndef _XFX_GRAPHICS_RASTERIZERSTATE_
#define _XFX_GRAPHICS_RASTERIZERSTATE_
#include "GraphicsResource.h"
namespace XFX
{
namespace Graphics
{
// Contains rasterizer state, which determines how to convert vector data (shapes) into raster data (pixels).
class RasterizerState : public GraphicsResource
{
private:
CullMode_t cullMode;
float dephtBias;
FillMode_t fillMode;
bool isBound;
bool multiSampleAntiAlias;
bool scissorTestEnable;
float slopeScaleDepthBias;
protected:
void Dispose(bool disposing);
public:
CullMode_t getCullMode() const;
void setCullMode(CullMode_t value);
float getDepthBias() const;
void setDepthBias(float value);
FillMode_t getFillMode() const;
void setFillMode(FillMode_t value);
bool getMultiSampleAntiAlias() const;
void setMultiSampleAntiAlias(bool value);
bool getScissorTestEnable() const;
void setScissorTestEnable(bool value);
float getSlopeScaleDepthBias() const;
void setSlopeScaleDepthBias(float value);
static const RasterizerState CullClockwise;
static const RasterizerState CullCounterClockwise;
static const RasterizerState CullNone;
RasterizerState();
~RasterizerState();
int GetType() const;
bool operator==(const RasterizerState& right) const;
bool operator!=(const RasterizerState& right) const;
};
}
}
#endif //_XFX_GRAPHICS_RASTERIZERSTATE_