1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00
XFXFramework/include/Graphics/SamplerState.h
Tom Lint 52ef14a94b Transition from SVN to Git
Added implicit conversion to base types to all primary types (UInt32 et
al)
Added implicit conversion from System::String to const char*
2013-05-05 18:18:41 +02:00

61 lines
1.6 KiB
C++

#ifndef _XFX_GRAPHICS_SAMPLERSTATE_
#define _XFX_GRAPHICS_SAMPLERSTATE_
#include "GraphicsResource.h"
namespace XFX
{
namespace Graphics
{
// Contains sampler state, which determines how to sample texture data.
class SamplerState : GraphicsResource
{
private:
TextureAddressMode_t addressU;
TextureAddressMode_t addressV;
TextureAddressMode_t addressW;
TextureFilter_t filter;
bool isBound;
int maxAnisotropy;
int maxMipLevel;
int mipMapLevelOfDetailBias;
protected:
void Dispose(bool disposing);
public:
TextureAddressMode_t getAddressU() const;
void setAddressU(TextureAddressMode_t value);
TextureAddressMode_t getAddressV() const;
void setAddressV(TextureAddressMode_t value);
TextureAddressMode_t getAddressW() const;
void setAddressW(TextureAddressMode_t value);
TextureFilter_t getFilter() const;
void setFilter(TextureFilter_t value);
int getMaxAnisotropy() const;
void setMaxAnisotropy(int value);
int getMaxMipLevel() const;
void setMaxMipLevel(int value);
int getMipMapLevelOfDetailBias() const;
void setMipMapLevelOfDetailBias(int value);
static const SamplerState AnisotropicClamp;
static const SamplerState AnisotropicWrap;
static const SamplerState LinearClamp;
static const SamplerState LinearWrap;
static const SamplerState PointClamp;
static const SamplerState PointWrap;
SamplerState();
~SamplerState();
int GetType() const;
bool operator==(const SamplerState& right) const;
bool operator!=(const SamplerState& right) const;
};
}
}
#endif //_XFX_GRAPHICS_SAMPLERSTATE_