SetGeometryMessage( GetEventThreadServices(), *mSceneObject, *geometrySceneObject );
}
+Geometry* Renderer::GetGeometry() const
+{
+ return mGeometryConnector.Get().Get();
+}
+
void Renderer::SetMaterial( Material& material )
{
mMaterialConnector.Set( material, OnStage() );
SetMaterialMessage( GetEventThreadServices(), *mSceneObject, *materialSceneObject );
}
+Material* Renderer::GetMaterial() const
+{
+ return mMaterialConnector.Get().Get();
+}
+
void Renderer::SetDepthIndex( int depthIndex )
{
SetDepthIndexMessage( GetEventThreadServices(), *mSceneObject, depthIndex );
void SetGeometry( Geometry& geometry );
/**
+ * @copydoc Dali::Renderer::GetGeometry()
+ */
+ Geometry* GetGeometry() const;
+
+ /**
* @copydoc Dali::Renderer::SetMaterial()
*/
void SetMaterial( Material& material );
/**
+ * @copydoc Dali::Renderer::GetMaterial()
+ */
+ Material* GetMaterial() const;
+
+ /**
* @copydoc Dali::Renderer::SetDepthIndex()
*/
void SetDepthIndex( int depthIndex );
mSamplerConnectors.erase( mSamplerConnectors.begin() + index );
}
+Sampler* Material::GetSamplerAt( unsigned int index ) const
+{
+ return mSamplerConnectors[index].Get().Get();
+}
+
void Material::SetFaceCullingMode( Dali::Material::FaceCullingMode cullingMode )
{
if( NULL != mSceneObject )
void RemoveSampler( std::size_t index );
/**
+ * @copydoc Dali::Material::GetSamplerAt()
+ */
+ Sampler* GetSamplerAt( unsigned int index ) const;
+
+ /**
* @copydoc Dali::Material::SetFaceCullingMode()
*/
void SetFaceCullingMode( Dali::Material::FaceCullingMode cullingMode );
GetImplementation(*this).SetGeometry( GetImplementation(geometry) );
}
+Geometry Renderer::GetGeometry() const
+{
+ Internal::Geometry* geometryPtr( GetImplementation(*this).GetGeometry() );
+ return Dali::Geometry( geometryPtr );
+}
+
void Renderer::SetMaterial( Material& material )
{
DALI_ASSERT_ALWAYS( material && "Material handle not initialized" );
GetImplementation(*this).SetMaterial( GetImplementation(material) );
}
+Material Renderer::GetMaterial() const
+{
+ Internal::Material* materialPtr( GetImplementation(*this).GetMaterial() );
+ return Dali::Material( materialPtr );
+}
+
void Renderer::SetDepthIndex( int depthIndex )
{
GetImplementation(*this).SetDepthIndex( depthIndex );
void SetGeometry( Geometry& geometry );
/**
+ * @brief Gets the geometry used by this renderer
+ *
+ * @return The geometry used by the renderer
+ */
+ Geometry GetGeometry() const;
+
+ /**
* @brief Sets the material to be used by this renderer
*
* @param[in] material The material to be used by this renderer
void SetMaterial( Material& material );
/**
+ * @brief Gets the material used by this renderer
+ *
+ * @return The material used by the renderer
+ */
+ Material GetMaterial() const;
+
+ /**
* @brief Set the depth index of this renderer
*
* Renderer with higher depth indices are rendered in front of other renderers with smaller values
GetImplementation(*this).RemoveSampler( index );
}
+Sampler Material::GetSamplerAt( unsigned int index ) const
+{
+ Internal::Sampler* samplerPtr( GetImplementation(*this).GetSamplerAt(index) );
+ return Dali::Sampler( samplerPtr );
+}
+
void Material::SetFaceCullingMode( FaceCullingMode cullingMode )
{
GetImplementation(*this).SetFaceCullingMode( cullingMode );
void RemoveSampler( std::size_t index );
/**
+ * @brief Get the sampler at the given index for this material
+ *
+ * The index must be between 0 and GetNumberOfSamplers()-1
+ *
+ * @param[in] index The index of the sampler
+ * @return The sampler at that index
+ */
+ Sampler GetSamplerAt( unsigned int index ) const;
+
+ /**
* @brief Set the culling mode for this material
*
* Calling this function sets the properties CULLING_MODE