Dali 3D User Interface Engine
List of all members | Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
Dali::Internal::Material Class Reference

Material is an object that connects a Shader with Samplers and can be used to shade a Geometry. More...

#include <material-impl.h>

Inheritance diagram for Dali::Internal::Material:
Inheritance graph
[legend]
Collaboration diagram for Dali::Internal::Material:
Collaboration graph
[legend]

Classes

struct  Texture
 

Public Member Functions

void SetShader (Shader &shader)
 Sets the Shader used by this material. More...
 
ShaderGetShader () const
 Gets the shader used by this material. More...
 
size_t AddTexture (ImagePtr image, const std::string &uniformName, SamplerPtr sampler)
 Add a new texture to be used by the material. More...
 
void RemoveTexture (size_t index)
 Removes a texture from the material. More...
 
void SetTextureImage (size_t index, Image *image)
 Sets the image to be used by a given texture. More...
 
void SetTextureSampler (size_t index, Sampler *sampler)
 Set the sampler used by a given texture. More...
 
SamplerGetTextureSampler (size_t index) const
 Retrieve the sampler of a texture given its texture index. More...
 
void SetTextureUniformName (size_t index, const std::string &uniformName)
 Set the uniform name of a given texture. More...
 
int GetTextureIndex (const std::string &uniformName) const
 Retrive the index of a texture given its uniform name. More...
 
ImageGetTexture (const std::string &uniformName) const
 Retrive the texture given its uniform name. More...
 
ImageGetTexture (size_t index) const
 Retrive the texture given its uniform name. More...
 
size_t GetNumberOfTextures () const
 Retrieve the number of textures used by the material. More...
 
const SceneGraph::MaterialGetMaterialSceneObject () const
 Get the material scene object. More...
 
virtual unsigned int GetDefaultPropertyCount () const
 Query how many default properties the derived class supports. More...
 
virtual void GetDefaultPropertyIndices (Property::IndexContainer &indices) const
 Retrieve all the indices that are associated with the default properties supported by the derived class. More...
 
virtual const char * GetDefaultPropertyName (Property::Index index) const
 Query how many default properties the derived class supports. More...
 
virtual Property::Index GetDefaultPropertyIndex (const std::string &name) const
 Query the index of a default property. More...
 
virtual bool IsDefaultPropertyWritable (Property::Index index) const
 Query whether a default property is writable. More...
 
virtual bool IsDefaultPropertyAnimatable (Property::Index index) const
 Query whether a default property is animatable. More...
 
virtual bool IsDefaultPropertyAConstraintInput (Property::Index index) const
 Query whether a default property can be used as an input to a constraint. More...
 
virtual Property::Type GetDefaultPropertyType (Property::Index index) const
 Query the type of a default property. More...
 
virtual void SetDefaultProperty (Property::Index index, const Property::Value &propertyValue)
 Set the value of a default property. More...
 
virtual void SetSceneGraphProperty (Property::Index index, const PropertyMetadata &entry, const Property::Value &value)
 Set the value of scene graph property. More...
 
virtual Property::Value GetDefaultProperty (Property::Index index) const
 Retrieve a default property value. More...
 
virtual const
SceneGraph::PropertyOwner
GetPropertyOwner () const
  More...
 
virtual const
SceneGraph::PropertyOwner
GetSceneObject () const
 Retrieve the scene-graph object added by this object. More...
 
virtual const
SceneGraph::PropertyBase
GetSceneObjectAnimatableProperty (Property::Index index) const
 Retrieve an animatable property owned by the scene-graph object. More...
 
virtual const PropertyInputImplGetSceneObjectInputProperty (Property::Index index) const
 Retrieve a constraint input-property owned by the scene-graph object. More...
 
virtual int GetPropertyComponentIndex (Property::Index index) const
 Query whether the property is a component of a scene-graph property. More...
 
virtual bool OnStage () const
 Check if the object is on stage. More...
 
virtual void Connect ()
 Notify this objects that it has been connected to the stage. More...
 
virtual void Disconnect ()
 Notify this objects that it has been disconnected to the stage. More...
 
- Public Member Functions inherited from Dali::Internal::Object
 Object ()
 Constructor. More...
 
virtual void AddObserver (Observer &observer)
 Add an observer to the object. More...
 
virtual void RemoveObserver (Observer &observer)
 Remove an observer from the object. More...
 
virtual bool Supports (Capability capability) const
 Query whether an handle supports a given capability. More...
 
virtual unsigned int GetPropertyCount () const
 Query how many properties are provided by an handle. More...
 
virtual std::string GetPropertyName (Property::Index index) const
 Query the name of a property. More...
 
virtual Property::Index GetPropertyIndex (const std::string &name) const
 Query the index of a property. More...
 
virtual bool IsPropertyWritable (Property::Index index) const
 Query whether a property can be set using SetProperty(). More...
 
virtual bool IsPropertyAnimatable (Property::Index index) const
 Query whether a writable property can be the target of an animation or constraint. More...
 
virtual bool IsPropertyAConstraintInput (Property::Index index) const
 Query whether a property can be used as in input to a constraint. More...
 
virtual Property::Type GetPropertyType (Property::Index index) const
 Query the type of a property. More...
 
virtual void SetProperty (Property::Index index, const Property::Value &propertyValue)
 Set the value of an existing property. More...
 
virtual Property::Value GetProperty (Property::Index index) const
 Retrieve a property value. More...
 
virtual void GetPropertyIndices (Property::IndexContainer &indices) const
 Retrieve all the property indices for this object (including custom properties). More...
 
virtual Property::Index RegisterProperty (const std::string &name, const Property::Value &propertyValue)
 Register a new animatable property. More...
 
virtual Property::Index RegisterProperty (const std::string &name, const Property::Value &propertyValue, Property::AccessMode accessMode)
  More...
 
virtual Dali::PropertyNotification AddPropertyNotification (Property::Index index, int componentIndex, const Dali::PropertyCondition &condition)
 Add a property notification to this object. More...
 
virtual void RemovePropertyNotification (Dali::PropertyNotification propertyNotification)
 Remove a property notification from this object. More...
 
virtual void RemovePropertyNotifications ()
 Remove all property notifications from this object. More...
 
void AddUniformMapping (Property::Index propertyIndex, const std::string &uniformName) const
  More...
 
void RemoveUniformMapping (const std::string &uniformName)
  More...
 
void ApplyConstraint (ConstraintBase &constraint)
 Apply a constraint to an Object. More...
 
void RemoveConstraint (ConstraintBase &constraint)
 Remove one constraint from an Object. More...
 
void RemoveConstraints ()
 Remove all constraints from a Object. More...
 
void RemoveConstraints (unsigned int tag)
 Remove all constraints from a Object with a matching tag. More...
 
void SetTypeInfo (const TypeInfo *typeInfo)
 Called by TypeInfo to set the type-info that this object-impl is created by. More...
 
unsigned int CustomPropertyStartIndex ()
 
- Public Member Functions inherited from Dali::BaseObject
template<class T >
bool ConnectSignal (ConnectionTrackerInterface *connectionTracker, const std::string &signalName, const T &functor)
 Connects a void() functor to a specified signal. More...
 
bool DoAction (const std::string &actionName, const Property::Map &attributes)
 Perform action on this object with the given action name and attributes. More...
 
const std::string & GetTypeName () const
 Returns the type name for the Handle. More...
 
bool GetTypeInfo (Dali::TypeInfo &info) const
 Returns the type info for the Handle. More...
 
bool DoConnectSignal (ConnectionTrackerInterface *connectionTracker, const std::string &signalName, FunctorDelegate *functorDelegate)
 Not intended for application developers. More...
 
- Public Member Functions inherited from Dali::RefObject
void Reference ()
 Increment the object's reference count. More...
 
void Unreference ()
 Decrement the object's reference count. More...
 
int ReferenceCount ()
 Retrieve the object's reference count. More...
 
- Public Member Functions inherited from Dali::Internal::Connectable
virtual ~Connectable ()
 Destructor. More...
 

Static Public Member Functions

static MaterialPtr New ()
 Create a new object. More...
 

Protected Member Functions

virtual ~Material ()
 A reference counted object may only be deleted by calling Unreference() More...
 
- Protected Member Functions inherited from Dali::Internal::Object
virtual ~Object ()
 A reference counted object may only be deleted by calling Unreference() More...
 
void OnSceneObjectAdd ()
 Called immediately by derived classes, after the scene-object has been created & passed to the scene-graph. More...
 
void OnSceneObjectRemove ()
 Called by derived classes, shortly before send a message to remove the scene-object. More...
 
virtual void OnPropertySet (Property::Index index, Property::Value propertyValue)
 For use in derived classes. More...
 
const TypeInfoGetTypeInfo () const
 Retrieves the TypeInfo for this object. More...
 
CustomPropertyMetadataFindCustomProperty (Property::Index index) const
 Helper to find custom property. More...
 
AnimatablePropertyMetadataFindAnimatableProperty (Property::Index index) const
 Helper to find animatable property. More...
 
Property::Index RegisterSceneGraphProperty (const std::string &name, Property::Index index, const Property::Value &propertyValue) const
 Helper to register a scene-graph property. More...
 
AnimatablePropertyMetadataRegisterAnimatableProperty (Property::Index index) const
 Check whether the animatable property is registered already, if not then register one. More...
 
EventThreadServicesGetEventThreadServices ()
 Get the event thread services object - used for sending messages to the scene graph Assert if called from the wrong thread. More...
 
const EventThreadServicesGetEventThreadServices () const
 Get the event thread services object - used for sending messages to the scene graph Assert if called from the wrong thread This is intentionally inline for performance reasons. More...
 
- Protected Member Functions inherited from Dali::BaseObject
 BaseObject ()
 Default constructor. More...
 
virtual ~BaseObject ()
 A reference counted object may only be deleted by calling Unreference(). More...
 
void RegisterObject ()
 Registers the object as created with the Object registry. More...
 
void UnregisterObject ()
 Unregisters the object from Object registry. More...
 
- Protected Member Functions inherited from Dali::RefObject
 RefObject ()
 Default constructor. More...
 
virtual ~RefObject ()
 RefObject is intended as a base class. More...
 
 RefObject (const RefObject &rhs)
 Copy constructor. More...
 
RefObjectoperator= (const RefObject &rhs)
 Assignment operator. More...
 

Private Member Functions

 Material ()
 
void Initialize ()
 Second stage initialization. More...
 
 Material (const Material &)
 
Materialoperator= (const Material &)
 

Private Attributes

SceneGraph::MaterialmSceneObject
 
IntrusivePtr< ShadermShader
 Connector that holds the shader used by this material. More...
 
std::vector< Material::TexturemTextures
 Vector of textures used by this material. More...
 
bool mOnStage
 

Additional Inherited Members

- Public Types inherited from Dali::Internal::Object
typedef Dali::Handle::Capability Capability
 

Detailed Description

Material is an object that connects a Shader with Samplers and can be used to shade a Geometry.

Definition at line 52 of file material-impl.h.

Constructor & Destructor Documentation

Dali::Internal::Material::Material ( )
private

Definition at line 320 of file material-impl.cpp.

Referenced by New().

Here is the caller graph for this function:

Dali::Internal::Material::~Material ( )
protectedvirtual
Dali::Internal::Material::Material ( const Material )
private

Member Function Documentation

size_t Dali::Internal::Material::AddTexture ( ImagePtr  image,
const std::string &  uniformName,
SamplerPtr  sampler 
)

Add a new texture to be used by the material.

Parameters
[in]imageThe image used by the texture
[in]uniformNameThe uniform name of the texture
[in]samplerSampling parameters. If not provided the default sampling parameters will be used
Returns
The index of the texture in the array of textures or -1 if texture can not be added

Definition at line 72 of file material-impl.cpp.

References Dali::Internal::SceneGraph::AddTextureMessage(), Dali::Internal::Object::GetEventThreadServices(), mOnStage, mSceneObject, and mTextures.

Here is the call graph for this function:

void Dali::Internal::Material::Connect ( )
virtual

Notify this objects that it has been connected to the stage.

Implements Dali::Internal::Connectable.

Definition at line 290 of file material-impl.cpp.

References Dali::Internal::Object::GetEventThreadServices(), mOnStage, mSceneObject, mTextures, and Dali::Internal::SceneGraph::SetTextureImageMessage().

Here is the call graph for this function:

void Dali::Internal::Material::Disconnect ( )
virtual

Notify this objects that it has been disconnected to the stage.

Implements Dali::Internal::Connectable.

Definition at line 307 of file material-impl.cpp.

References mOnStage, and mTextures.

Property::Value Dali::Internal::Material::GetDefaultProperty ( Property::Index  index) const
virtual

Retrieve a default property value.

Parameters
[in]indexThe index of the property.
Returns
The property value.

Implements Dali::Internal::Object.

Definition at line 252 of file material-impl.cpp.

References Dali::Property::Value().

Here is the call graph for this function:

unsigned int Dali::Internal::Material::GetDefaultPropertyCount ( ) const
virtual

Query how many default properties the derived class supports.

Returns
The number of default properties.

Implements Dali::Internal::Object.

Definition at line 199 of file material-impl.cpp.

References Dali::Internal::ObjectImplHelper< DEFAULT_PROPERTY_COUNT >::GetDefaultPropertyCount().

Here is the call graph for this function:

Property::Index Dali::Internal::Material::GetDefaultPropertyIndex ( const std::string &  name) const
virtual

Query the index of a default property.

Parameters
[in]nameThe name of the property.
Returns
The index of the property, or Property::INVALID_INDEX if no default property exists with the given name.

Implements Dali::Internal::Object.

Definition at line 214 of file material-impl.cpp.

References Dali::Internal::ObjectImplHelper< DEFAULT_PROPERTY_COUNT >::GetDefaultPropertyIndex().

Here is the call graph for this function:

void Dali::Internal::Material::GetDefaultPropertyIndices ( Property::IndexContainer indices) const
virtual

Retrieve all the indices that are associated with the default properties supported by the derived class.

Returns
A container of default property indices.
Note
The deriving class must not modify the existing elements in the container.

Implements Dali::Internal::Object.

Definition at line 204 of file material-impl.cpp.

References Dali::Internal::ObjectImplHelper< DEFAULT_PROPERTY_COUNT >::GetDefaultPropertyIndices().

Here is the call graph for this function:

const char * Dali::Internal::Material::GetDefaultPropertyName ( Property::Index  index) const
virtual

Query how many default properties the derived class supports.

Returns
The number of default properties.

Implements Dali::Internal::Object.

Definition at line 209 of file material-impl.cpp.

References Dali::Internal::ObjectImplHelper< DEFAULT_PROPERTY_COUNT >::GetDefaultPropertyName().

Here is the call graph for this function:

Property::Type Dali::Internal::Material::GetDefaultPropertyType ( Property::Index  index) const
virtual

Query the type of a default property.

Parameters
[in]indexThe index of the property.
Returns
The type of the property.

Implements Dali::Internal::Object.

Definition at line 234 of file material-impl.cpp.

References Dali::Internal::ObjectImplHelper< DEFAULT_PROPERTY_COUNT >::GetDefaultPropertyType().

Here is the call graph for this function:

const SceneGraph::Material * Dali::Internal::Material::GetMaterialSceneObject ( ) const

Get the material scene object.

Returns
the material scene object

Definition at line 194 of file material-impl.cpp.

References mSceneObject.

Referenced by Dali::Internal::Renderer::SetMaterial().

Here is the caller graph for this function:

size_t Dali::Internal::Material::GetNumberOfTextures ( ) const

Retrieve the number of textures used by the material.

Definition at line 189 of file material-impl.cpp.

References mTextures.

Referenced by GetTexture(), GetTextureIndex(), GetTextureSampler(), RemoveTexture(), SetTextureImage(), SetTextureSampler(), and SetTextureUniformName().

Here is the caller graph for this function:

int Dali::Internal::Material::GetPropertyComponentIndex ( Property::Index  index) const
virtual

Query whether the property is a component of a scene-graph property.

Precondition
-1 < index < GetPropertyCount().
Parameters
[in]indexThe index of the property.
Returns
The index or Property::INVALID_COMPONENT_INDEX.

Reimplemented from Dali::Internal::Object.

Definition at line 280 of file material-impl.cpp.

References Dali::Property::INVALID_COMPONENT_INDEX.

const SceneGraph::PropertyOwner * Dali::Internal::Material::GetPropertyOwner ( ) const
virtual

Todo:
this is virtual so that for now actor can override it, it needs to be removed and only have GetSceneObject but that requires changing actor and constraint logic Retrieve the scene-graph object added by this object.
Returns
A pointer to the object, or NULL if no object has been added to the scene-graph.

Reimplemented from Dali::Internal::Object.

Definition at line 258 of file material-impl.cpp.

References mSceneObject.

const SceneGraph::PropertyOwner * Dali::Internal::Material::GetSceneObject ( ) const
virtual

Retrieve the scene-graph object added by this object.

Returns
A pointer to the object, or NULL if no object has been added to the scene-graph.

Implements Dali::Internal::Object.

Definition at line 263 of file material-impl.cpp.

References mSceneObject.

const SceneGraph::PropertyBase * Dali::Internal::Material::GetSceneObjectAnimatableProperty ( Property::Index  index) const
virtual

Retrieve an animatable property owned by the scene-graph object.

Precondition
-1 < index < GetPropertyCount().
Parameters
[in]indexThe index of the property.
Returns
A dereferenceable pointer to a property, or NULL if a scene-object does not exist with this property.

Implements Dali::Internal::Object.

Definition at line 268 of file material-impl.cpp.

References DALI_ASSERT_ALWAYS, Dali::Internal::Object::FindAnimatableProperty(), Dali::Internal::Object::FindCustomProperty(), and Dali::PROPERTY_CUSTOM_START_INDEX.

Referenced by GetSceneObjectInputProperty().

Here is the call graph for this function:

Here is the caller graph for this function:

const PropertyInputImpl * Dali::Internal::Material::GetSceneObjectInputProperty ( Property::Index  index) const
virtual

Retrieve a constraint input-property owned by the scene-graph object.

Precondition
-1 < index < GetPropertyCount().
Parameters
[in]indexThe index of the property.
Returns
A dereferenceable pointer to an input property, or NULL if a scene-object does not exist with this property.

Implements Dali::Internal::Object.

Definition at line 275 of file material-impl.cpp.

References GetSceneObjectAnimatableProperty().

Here is the call graph for this function:

Shader * Dali::Internal::Material::GetShader ( ) const

Gets the shader used by this material.

Returns
The shader used by the material

Definition at line 67 of file material-impl.cpp.

References Dali::IntrusivePtr< T >::Get(), and mShader.

Here is the call graph for this function:

Image * Dali::Internal::Material::GetTexture ( const std::string &  uniformName) const

Retrive the texture given its uniform name.

Parameters
[in]uniformNamethe uniform name
Returns
The image in the array of textures corresponding to the uniformName or an empty handle if the texture is not found

Definition at line 168 of file material-impl.cpp.

References GetTextureIndex().

Here is the call graph for this function:

Image * Dali::Internal::Material::GetTexture ( size_t  index) const

Retrive the texture given its uniform name.

Parameters
[in]uniformNamethe uniform name
Returns
The image in the array of textures corresponding to the uniformName or an empty handle if the texture is not found

Definition at line 179 of file material-impl.cpp.

References GetNumberOfTextures(), and mTextures.

Here is the call graph for this function:

int Dali::Internal::Material::GetTextureIndex ( const std::string &  uniformName) const

Retrive the index of a texture given its uniform name.

Parameters
[in]uniformNamethe uniform name
Returns
The index in the array of textures or -1 if the texture is not found

Definition at line 154 of file material-impl.cpp.

References GetNumberOfTextures(), and mTextures.

Referenced by GetTexture().

Here is the call graph for this function:

Here is the caller graph for this function:

Sampler * Dali::Internal::Material::GetTextureSampler ( size_t  index) const

Retrieve the sampler of a texture given its texture index.

Parameters
[in]indexThe index of the texture in the array of textures
Returns
Returns the sampler of a texture given its texture index

Definition at line 135 of file material-impl.cpp.

References GetNumberOfTextures(), and mTextures.

Here is the call graph for this function:

void Dali::Internal::Material::Initialize ( void  )
private
bool Dali::Internal::Material::IsDefaultPropertyAConstraintInput ( Property::Index  index) const
virtual

Query whether a default property can be used as an input to a constraint.

Parameters
[in]indexThe index of the property.
Returns
True if the property can be used as an input to a constraint.

Implements Dali::Internal::Object.

Definition at line 229 of file material-impl.cpp.

References Dali::Internal::ObjectImplHelper< DEFAULT_PROPERTY_COUNT >::IsDefaultPropertyAConstraintInput().

Here is the call graph for this function:

bool Dali::Internal::Material::IsDefaultPropertyAnimatable ( Property::Index  index) const
virtual

Query whether a default property is animatable.

This determines whether the property can be the target of an animation or constraint.

Parameters
[in]indexThe index of the property.
Returns
True if the property is animatable.

Implements Dali::Internal::Object.

Definition at line 224 of file material-impl.cpp.

References Dali::Internal::ObjectImplHelper< DEFAULT_PROPERTY_COUNT >::IsDefaultPropertyAnimatable().

Here is the call graph for this function:

bool Dali::Internal::Material::IsDefaultPropertyWritable ( Property::Index  index) const
virtual

Query whether a default property is writable.

Parameters
[in]indexThe index of the property.
Returns
True if the property is animatable.

Implements Dali::Internal::Object.

Definition at line 219 of file material-impl.cpp.

References Dali::Internal::ObjectImplHelper< DEFAULT_PROPERTY_COUNT >::IsDefaultPropertyWritable().

Here is the call graph for this function:

MaterialPtr Dali::Internal::Material::New ( )
static

Create a new object.

.0

Returns
A handle to a newly allocated object.

Definition at line 51 of file material-impl.cpp.

References Material().

Referenced by Dali::Material::New(), and Dali::Internal::ImageActor::New().

Here is the call graph for this function:

Here is the caller graph for this function:

bool Dali::Internal::Material::OnStage ( ) const
virtual

Check if the object is on stage.

Implements Dali::Internal::Connectable.

Definition at line 285 of file material-impl.cpp.

References mOnStage.

Material& Dali::Internal::Material::operator= ( const Material )
private
void Dali::Internal::Material::RemoveTexture ( size_t  index)

Removes a texture from the material.

Parameters
[in]indexThe index of the texture in the array of textures

Definition at line 92 of file material-impl.cpp.

References Dali::Internal::Object::GetEventThreadServices(), GetNumberOfTextures(), mSceneObject, mTextures, and Dali::Internal::SceneGraph::RemoveTextureMessage().

Here is the call graph for this function:

void Dali::Internal::Material::SetDefaultProperty ( Property::Index  index,
const Property::Value propertyValue 
)
virtual

Set the value of a default property.

Precondition
The property types match i.e. propertyValue.GetType() is equal to GetPropertyType(index).
Parameters
[in]indexThe index of the property.
[in]propertyValueThe new value of the property.

Implements Dali::Internal::Object.

Definition at line 239 of file material-impl.cpp.

void Dali::Internal::Material::SetSceneGraphProperty ( Property::Index  index,
const PropertyMetadata entry,
const Property::Value value 
)
virtual

Set the value of scene graph property.

Parameters
[in]indexThe index of the property.
[in]entryAn entry from the property lookup container.
[in]valueThe new value of the property.

Reimplemented from Dali::Internal::Object.

Definition at line 244 of file material-impl.cpp.

References Dali::Internal::Object::GetEventThreadServices(), Dali::Internal::Object::OnPropertySet(), and Dali::Internal::ObjectImplHelper< DEFAULT_PROPERTY_COUNT >::SetSceneGraphProperty().

Here is the call graph for this function:

void Dali::Internal::Material::SetShader ( Shader shader)

Sets the Shader used by this material.

Parameters
[in]shaderHandle to a shader

Definition at line 58 of file material-impl.cpp.

References DALI_ASSERT_DEBUG, Dali::Internal::Object::GetEventThreadServices(), Dali::Internal::Shader::GetShaderSceneObject(), mSceneObject, mShader, and Dali::Internal::SceneGraph::SetShaderMessage().

Here is the call graph for this function:

void Dali::Internal::Material::SetTextureImage ( size_t  index,
Image image 
)

Sets the image to be used by a given texture.

Parameters
[in]indexThe index of the texture in the array of textures
[in]imageThe new image

Definition at line 101 of file material-impl.cpp.

References Dali::Internal::Image::Connect(), Dali::Internal::Object::GetEventThreadServices(), GetNumberOfTextures(), mOnStage, mSceneObject, mTextures, and Dali::Internal::SceneGraph::SetTextureImageMessage().

Here is the call graph for this function:

void Dali::Internal::Material::SetTextureSampler ( size_t  index,
Sampler sampler 
)

Set the sampler used by a given texture.

Parameters
[in]indexThe index of the texture in the array of textures
[in]samplerThe new sampler

Definition at line 120 of file material-impl.cpp.

References Dali::Internal::Object::GetEventThreadServices(), GetNumberOfTextures(), Dali::Internal::Sampler::GetSamplerRenderObject(), mSceneObject, mTextures, and Dali::Internal::SceneGraph::SetTextureSamplerMessage().

Here is the call graph for this function:

void Dali::Internal::Material::SetTextureUniformName ( size_t  index,
const std::string &  uniformName 
)

Set the uniform name of a given texture.

Parameters
[in]indexThe index of the texture in the array of textures
[in]uniformNameThe new uniform name

Definition at line 145 of file material-impl.cpp.

References Dali::Internal::Object::GetEventThreadServices(), GetNumberOfTextures(), mSceneObject, mTextures, and Dali::Internal::SceneGraph::SetTextureUniformNameMessage().

Here is the call graph for this function:

Member Data Documentation

bool Dali::Internal::Material::mOnStage
private

Definition at line 270 of file material-impl.h.

Referenced by AddTexture(), Connect(), Disconnect(), OnStage(), and SetTextureImage().

SceneGraph::Material* Dali::Internal::Material::mSceneObject
private
IntrusivePtr<Shader> Dali::Internal::Material::mShader
private

Connector that holds the shader used by this material.

Definition at line 267 of file material-impl.h.

Referenced by GetShader(), and SetShader().

std::vector<Material::Texture> Dali::Internal::Material::mTextures
private

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