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

Wraps all the data providers for the renderer. More...

#include <render-data-provider.h>

Collaboration diagram for Dali::Internal::SceneGraph::RenderDataProvider:
Collaboration graph
[legend]

Public Types

typedef Dali::Vector< const
PropertyBufferDataProvider * > 
VertexBuffers
 
typedef std::vector
< Render::Texture
Textures
 

Public Member Functions

 RenderDataProvider ()
 Constructor. More...
 
 ~RenderDataProvider ()
 Destructor. More...
 
void SetUniformMap (const UniformMapDataProvider &uniformMapDataProvider)
 Set the uniform map data provider. More...
 
const UniformMapDataProviderGetUniformMap () const
 Get the uniform map data provider. More...
 
void SetShader (Shader &shader)
 Set the shader data provider. More...
 
ShaderGetShader () const
 Returns the shader. More...
 
TexturesGetTextures ()
 Returns the list of textures. More...
 

Private Attributes

const UniformMapDataProvidermUniformMapDataProvider
 
ShadermShader
 
Textures mTextures
 

Friends

class Renderer
 

Detailed Description

Wraps all the data providers for the renderer.

This allows the individual providers to change connections in the update thread without affecting the current render. It essentially provides double buffering of the provider accessor through the message system. It does not take ownership of any objects.

Definition at line 46 of file render-data-provider.h.

Member Typedef Documentation

Definition at line 50 of file render-data-provider.h.

Definition at line 49 of file render-data-provider.h.

Constructor & Destructor Documentation

Dali::Internal::SceneGraph::RenderDataProvider::RenderDataProvider ( )

Constructor.

The RendererAttachment that creates this object will initialize the members directly.

Definition at line 27 of file render-data-provider.cpp.

Dali::Internal::SceneGraph::RenderDataProvider::~RenderDataProvider ( )

Destructor.

Definition at line 33 of file render-data-provider.cpp.

Member Function Documentation

Shader & Dali::Internal::SceneGraph::RenderDataProvider::GetShader ( ) const

Returns the shader.

Returns
The shader

Definition at line 53 of file render-data-provider.cpp.

References mShader.

Referenced by Dali::Internal::Render::Renderer::Render(), and Dali::Internal::Render::Renderer::SetSortAttributes().

Here is the caller graph for this function:

RenderDataProvider::Textures & Dali::Internal::SceneGraph::RenderDataProvider::GetTextures ( )

Returns the list of textures.

Returns
The list of textures

Definition at line 58 of file render-data-provider.cpp.

References mTextures.

Referenced by Dali::Internal::Render::Renderer::BindTextures(), and Dali::Internal::Render::Renderer::SetSortAttributes().

Here is the caller graph for this function:

const UniformMapDataProvider & Dali::Internal::SceneGraph::RenderDataProvider::GetUniformMap ( ) const

Get the uniform map data provider.

Definition at line 43 of file render-data-provider.cpp.

References mUniformMapDataProvider.

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

Here is the caller graph for this function:

void Dali::Internal::SceneGraph::RenderDataProvider::SetShader ( Shader shader)

Set the shader data provider.

Parameters
[in]shaderThe shader data provider

Definition at line 48 of file render-data-provider.cpp.

References mShader.

void Dali::Internal::SceneGraph::RenderDataProvider::SetUniformMap ( const UniformMapDataProvider uniformMapDataProvider)

Set the uniform map data provider.

Parameters
[in]uniformMapDataProviderThe uniform map data provider

Definition at line 38 of file render-data-provider.cpp.

References mUniformMapDataProvider.

Friends And Related Function Documentation

friend class Renderer
friend

Definition at line 102 of file render-data-provider.h.

Member Data Documentation

Shader* Dali::Internal::SceneGraph::RenderDataProvider::mShader
private
Textures Dali::Internal::SceneGraph::RenderDataProvider::mTextures
private
const UniformMapDataProvider* Dali::Internal::SceneGraph::RenderDataProvider::mUniformMapDataProvider
private

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