PixelLightAPI  .
Public Member Functions
PLRenderer::SamplerStates Class Reference

Sampler states RTTI wrapper class. More...

#include <SamplerStates.h>

Inheritance diagram for PLRenderer::SamplerStates:
Inheritance graph
[legend]

List of all members.

Public Member Functions

TextureAddressing::Enum GetAddressU () const
void SetAddressU (TextureAddressing::Enum nValue)
TextureAddressing::Enum GetAddressV () const
void SetAddressV (TextureAddressing::Enum nValue)
TextureAddressing::Enum GetAddressW () const
void SetAddressW (TextureAddressing::Enum nValue)
TextureFiltering::Enum GetMagFilter () const
void SetMagFilter (TextureFiltering::Enum nValue)
TextureFiltering::Enum GetMinFilter () const
void SetMinFilter (TextureFiltering::Enum nValue)
TextureFiltering::Enum GetMipFilter () const
void SetMipFilter (TextureFiltering::Enum nValue)
float GetMipmapLODBias () const
void SetMipmapLODBias (float fValue)
PLCore::uint32 GetMaxMapLevel () const
void SetMaxMapLevel (int nValue)
PLCore::uint32 GetMaxAnisotropy () const
void SetMaxAnisotropy (PLCore::uint32 nValue)
PLRENDERER_API SamplerStates ()
 Constructor.
PLRENDERER_API SamplerStates (const SamplerStates &cSource)
 Copy constructor.
virtual PLRENDERER_API ~SamplerStates ()
 Destructor.
PLCore::uint32 Get (Sampler::Enum nState) const
 Retrieves a sampler-state value.
bool Set (Sampler::Enum nState, PLCore::uint32 nValue)
 Sets a single sampler-state parameter.
SamplerStatesoperator= (const SamplerStates &cSource)
 Copy operator.

Detailed Description

Sampler states RTTI wrapper class.


Constructor & Destructor Documentation

Constructor.

PLRENDERER_API PLRenderer::SamplerStates::SamplerStates ( const SamplerStates cSource)

Copy constructor.

Parameters:
[in]cSourceSource to copy from
virtual PLRENDERER_API PLRenderer::SamplerStates::~SamplerStates ( ) [virtual]

Destructor.


Member Function Documentation

void PLRenderer::SamplerStates::SetMipmapLODBias ( float  fValue) [inline]
PLCore::uint32 PLRenderer::SamplerStates::GetMaxMapLevel ( ) const [inline]
void PLRenderer::SamplerStates::SetMaxMapLevel ( int  nValue) [inline]
PLCore::uint32 PLRenderer::SamplerStates::GetMaxAnisotropy ( ) const [inline]
void PLRenderer::SamplerStates::SetMaxAnisotropy ( PLCore::uint32  nValue) [inline]
PLCore::uint32 PLRenderer::SamplerStates::Get ( Sampler::Enum  nState) const [inline]

Retrieves a sampler-state value.

Parameters:
[in]nStateState variable that is being queried. This parameter can be any member of the sampler enumerated type.
Returns:
The value of the queried sampler state variable
bool PLRenderer::SamplerStates::Set ( Sampler::Enum  nState,
PLCore::uint32  nValue 
) [inline]

Sets a single sampler-state parameter.

Parameters:
[in]nStateState variable that is being modified. This parameter can be any member of the sampler enumerated type.
[in]nValueNew value for the sampler state to be set. The meaning of this parameter is dependent on the value specified for nState. For example, if nState is Sampler::AddressU, the second parameter must be one member of the Sampler::AddressU enumerated type. (e.g. TextureAddressing::Wrap) You can also set the value to unknown - then this state is ignored.
Returns:
'true' if all went fine, else 'false'
SamplerStates & PLRenderer::SamplerStates::operator= ( const SamplerStates cSource) [inline]

Copy operator.

Parameters:
[in]cSourceSource to copy from
Returns:
This class

The documentation for this class was generated from the following files:


PixelLight PixelLight 0.9.10-R1
Copyright (C) 2002-2011 by The PixelLight Team
Last modified Fri Dec 23 2011 15:51:23
The content of this PixelLight document is published under the
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported