Dali 3D User Interface Engine
List of all members | Public Types | Public Member Functions | Private Attributes
Dali::Internal::Render::Texture Class Reference

This class is the mapping between texture id, sampler and sampler uniform name. More...

#include <render-texture.h>

Collaboration diagram for Dali::Internal::Render::Texture:
Collaboration graph
[legend]

Public Types

enum  { NOT_INITIALIZED = -1 }
 Enumeration to tell that this sampler does not have a unique index yet. More...
 

Public Member Functions

 Texture ()
 Constructor. More...
 
 Texture (const std::string &samplerName, Integration::ResourceId textureId, Render::Sampler *sampler)
 Constructor. More...
 
 ~Texture ()
 Destructor. More...
 
const Render::SamplerGetSampler () const
 
const std::string & GetUniformName () const
 Get the texture unit uniform name. More...
 
Integration::ResourceId GetTextureId () const
 Get the texture ID. More...
 
void SetUniformUniqueIndex (int32_t index)
 Get the Uniform unique index. More...
 
int32_t GetUniformUniqueIndex () const
 Get the Uniform unique index. More...
 

Private Attributes

Render::SamplermSampler
 
std::string mUniformName
 
Integration::ResourceId mTextureId
 
int32_t mUniformUniqueIndex
 

Detailed Description

This class is the mapping between texture id, sampler and sampler uniform name.

Definition at line 38 of file render-texture.h.

Member Enumeration Documentation

anonymous enum

Enumeration to tell that this sampler does not have a unique index yet.

Enumerator
NOT_INITIALIZED 

Definition at line 45 of file render-texture.h.

Constructor & Destructor Documentation

Dali::Internal::Render::Texture::Texture ( )
inline

Constructor.

Definition at line 53 of file render-texture.h.

Dali::Internal::Render::Texture::Texture ( const std::string &  samplerName,
Integration::ResourceId  textureId,
Render::Sampler sampler 
)
inline

Constructor.

Definition at line 63 of file render-texture.h.

Dali::Internal::Render::Texture::~Texture ( )
inline

Destructor.

Definition at line 73 of file render-texture.h.

Member Function Documentation

const Render::Sampler* Dali::Internal::Render::Texture::GetSampler ( ) const
inline

Definition at line 80 of file render-texture.h.

References mSampler.

Referenced by Dali::Internal::Render::Renderer::BindTextures().

Here is the caller graph for this function:

Integration::ResourceId Dali::Internal::Render::Texture::GetTextureId ( ) const
inline

Get the texture ID.

Returns
the id of the associated texture

Definition at line 100 of file render-texture.h.

References mTextureId.

const std::string& Dali::Internal::Render::Texture::GetUniformName ( ) const
inline

Get the texture unit uniform name.

Returns
the name of the texture unit uniform

Definition at line 91 of file render-texture.h.

References mUniformName.

Referenced by Dali::Internal::Render::Renderer::BindTextures().

Here is the caller graph for this function:

int32_t Dali::Internal::Render::Texture::GetUniformUniqueIndex ( ) const
inline

Get the Uniform unique index.

Returns
the identity of the associated texture

Definition at line 118 of file render-texture.h.

References mUniformUniqueIndex.

Referenced by Dali::Internal::Render::Renderer::BindTextures().

Here is the caller graph for this function:

void Dali::Internal::Render::Texture::SetUniformUniqueIndex ( int32_t  index)
inline

Get the Uniform unique index.

Returns
the identity of the associated texture

Definition at line 109 of file render-texture.h.

References mUniformUniqueIndex.

Referenced by Dali::Internal::Render::Renderer::BindTextures().

Here is the caller graph for this function:

Member Data Documentation

Render::Sampler* Dali::Internal::Render::Texture::mSampler
private

Definition at line 125 of file render-texture.h.

Referenced by GetSampler().

Integration::ResourceId Dali::Internal::Render::Texture::mTextureId
private

Definition at line 127 of file render-texture.h.

Referenced by GetTextureId().

std::string Dali::Internal::Render::Texture::mUniformName
private

Definition at line 126 of file render-texture.h.

Referenced by GetUniformName().

int32_t Dali::Internal::Render::Texture::mUniformUniqueIndex
private

Definition at line 128 of file render-texture.h.

Referenced by GetUniformUniqueIndex(), and SetUniformUniqueIndex().


The documentation for this class was generated from the following file:
Dali Docs Home
Read more about Dali