OGRE 2.1
Object-Oriented Graphics Rendering Engine
|
A sampler block contains settings that go hand in hand with a texture, and thus are common to many textures. More...
#include <OgreHlmsSamplerblock.h>
Public Member Functions | |
HlmsSamplerblock () | |
bool | operator!= (const HlmsSamplerblock &_r) const |
void | setAddressingMode (TextureAddressingMode addressingMode) |
void | setFiltering (TextureFilterOptions filterType) |
Helper function to set filtering to the most common settings. | |
Public Attributes | |
uint8 | mAllowGlobalDefaults |
When zero, HlmsManager cannot override the block's values with enforced global settings. | |
uint8 | mBlockType |
ColourValue | mBorderColour |
CompareFunction | mCompareFunction |
Defaults to NUM_COMPARE_FUNCTIONS which means disabled. | |
uint16 | mId |
The mId is only valid while mRefCount > 0; which means mRsData may contain valid data, else it's null. | |
uint16 | mLifetimeId |
Except for HlmsSamplerblocks, mLifetimeId is valid throghout the entire life of HlmsManager. | |
FilterOptions | mMagFilter |
float | mMaxAnisotropy |
float | mMaxLod |
FilterOptions | mMinFilter |
float | mMinLod |
FilterOptions | mMipFilter |
Real | mMipLodBias |
This allows you to adjust the mipmap calculation up or down for a given texture unit. | |
uint16 | mRefCount |
Render-System specific data. | |
void * | mRsData |
TextureAddressingMode | mU |
TextureAddressingMode | mV |
TextureAddressingMode | mW |
A sampler block contains settings that go hand in hand with a texture, and thus are common to many textures.
This is very analogous to D3D11_SAMPLER_DESC. @See HlmsDatablock Up to 32 different blocks are allowed!
Ogre::HlmsSamplerblock::HlmsSamplerblock | ( | ) |
|
inline |
void Ogre::HlmsSamplerblock::setAddressingMode | ( | TextureAddressingMode | addressingMode | ) |
void Ogre::HlmsSamplerblock::setFiltering | ( | TextureFilterOptions | filterType | ) |
Helper function to set filtering to the most common settings.
|
inherited |
When zero, HlmsManager cannot override the block's values with enforced global settings.
|
inherited |
ColourValue Ogre::HlmsSamplerblock::mBorderColour |
CompareFunction Ogre::HlmsSamplerblock::mCompareFunction |
Defaults to NUM_COMPARE_FUNCTIONS which means disabled.
|
inherited |
The mId is only valid while mRefCount > 0; which means mRsData may contain valid data, else it's null.
|
inherited |
Except for HlmsSamplerblocks, mLifetimeId is valid throghout the entire life of HlmsManager.
This guarantees HlmsMacroblock & HlmsBlendblock pointers are always valid, although they may be inactive (i.e. mId invalid, mRefCount = 0 and mRsData = 0)
FilterOptions Ogre::HlmsSamplerblock::mMagFilter |
float Ogre::HlmsSamplerblock::mMaxAnisotropy |
float Ogre::HlmsSamplerblock::mMaxLod |
FilterOptions Ogre::HlmsSamplerblock::mMinFilter |
float Ogre::HlmsSamplerblock::mMinLod |
FilterOptions Ogre::HlmsSamplerblock::mMipFilter |
Real Ogre::HlmsSamplerblock::mMipLodBias |
This allows you to adjust the mipmap calculation up or down for a given texture unit.
Negative values force a larger mipmap to be used, positive values force a smaller mipmap to be used. Units are in numbers of levels, so +1 forces the mipmaps to one smaller level.
|
inherited |
Render-System specific data.
|
inherited |
TextureAddressingMode Ogre::HlmsSamplerblock::mU |
TextureAddressingMode Ogre::HlmsSamplerblock::mV |
TextureAddressingMode Ogre::HlmsSamplerblock::mW |