Tizen Native API  5.0
Dali::Sampler Class Reference

Sampler is a handle to an object that can be used to provide the sampling parameters to sample textures. More...

Inheritance diagram for Dali::Sampler:
Dali::BaseHandle

Public Member Functions

 Sampler ()
 Default constructor, creates an empty handle.
 ~Sampler ()
 Destructor.
 Sampler (const Sampler &handle)
 Copy constructor, creates a new handle to the same object.
Sampleroperator= (const Sampler &handle)
 Assignment operator, changes this handle to point at the same object.
void SetFilterMode (FilterMode::Type minFilter, FilterMode::Type magFilter)
 Sets the filter modes for this sampler. Calling this function sets the properties MINIFICATION_FILTER and MAGNIFICATION_FILTER.
void SetWrapMode (WrapMode::Type uWrap, WrapMode::Type vWrap)
 Sets the wrap modes for this sampler.
void SetWrapMode (WrapMode::Type rWrap, WrapMode::Type sWrap, WrapMode::Type tWrap)
 Sets the wrap modes for this sampler.
 Sampler (Internal::Sampler *pointer)
 The constructor.

Static Public Member Functions

static Sampler New ()
 Creates a new Sampler object.
static Sampler DownCast (BaseHandle handle)
 Downcasts to a sampler handle. If not, the returned handle is left uninitialized.

Detailed Description

Sampler is a handle to an object that can be used to provide the sampling parameters to sample textures.

Since:
3.0, DALi version 1.1.43

Constructor & Destructor Documentation

Default constructor, creates an empty handle.

Since:
3.0, DALi version 1.1.43

Destructor.

Since:
3.0, DALi version 1.1.43
Dali::Sampler::Sampler ( const Sampler handle)

Copy constructor, creates a new handle to the same object.

Since:
3.0, DALi version 1.1.43
Parameters:
[in]handleHandle to an object
Dali::Sampler::Sampler ( Internal::Sampler *  pointer) [explicit]

The constructor.

Note:
Not intended for application developers.
Since:
3.0, DALi version 1.1.43
Parameters:
[in]pointerA pointer to a newly allocated Sampler

Member Function Documentation

static Sampler Dali::Sampler::DownCast ( BaseHandle  handle) [static]

Downcasts to a sampler handle. If not, the returned handle is left uninitialized.

Since:
3.0, DALi version 1.1.43
Parameters:
[in]handleHandle to an object
Returns:
Handle or an uninitialized handle
static Sampler Dali::Sampler::New ( ) [static]

Creates a new Sampler object.

Since:
3.0, DALi version 1.1.43
Returns:
A handle to the Sampler
Sampler& Dali::Sampler::operator= ( const Sampler handle)

Assignment operator, changes this handle to point at the same object.

Since:
3.0, DALi version 1.1.43
Parameters:
[in]handleHandle to an object
Returns:
Reference to the assigned object
void Dali::Sampler::SetFilterMode ( FilterMode::Type  minFilter,
FilterMode::Type  magFilter 
)

Sets the filter modes for this sampler. Calling this function sets the properties MINIFICATION_FILTER and MAGNIFICATION_FILTER.

Since:
3.0, DALi version 1.1.43
Parameters:
[in]minFilterThe minification filter that will be used
[in]magFilterThe magnification filter that will be used
void Dali::Sampler::SetWrapMode ( WrapMode::Type  uWrap,
WrapMode::Type  vWrap 
)

Sets the wrap modes for this sampler.

Since:
3.0, DALi version 1.1.43
Parameters:
[in]uWrapWrap mode for u coordinates
[in]vWrapWrap mode for v coordinates
void Dali::Sampler::SetWrapMode ( WrapMode::Type  rWrap,
WrapMode::Type  sWrap,
WrapMode::Type  tWrap 
)

Sets the wrap modes for this sampler.

Since:
3.0, DALi version 1.1.43
Parameters:
[in]rWrapWrap mode for the z direction
[in]sWrapWrap mode for the x direction
[in]tWrapWrap mode for the y direction