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

Node values (position etc.) are double-buffered. More...

#include <scene-graph-buffers.h>

Public Member Functions

 SceneGraphBuffers ()
 Create a SceneGraphBuffers object. More...
 
 ~SceneGraphBuffers ()
 Non-virtual destructor; not intended as a base class. More...
 
BufferIndex GetEventBufferIndex () const
 Retrieve the current event-buffer index. More...
 
BufferIndex GetUpdateBufferIndex () const
 Retrieve the current update-buffer index. More...
 
void Swap ()
 Swap the Event & Update buffer indices. More...
 

Static Public Attributes

static BufferIndex INITIAL_EVENT_BUFFER_INDEX = 0u
 
static BufferIndex INITIAL_UPDATE_BUFFER_INDEX = 1u
 

Private Member Functions

 SceneGraphBuffers (const SceneGraphBuffers &)
 
SceneGraphBuffersoperator= (const SceneGraphBuffers &rhs)
 

Private Attributes

BufferIndex mEventBufferIndex
 0 or 1 (opposite of mUpdateBufferIndex) More...
 
BufferIndex mUpdateBufferIndex
 0 or 1 (opposite of mEventBufferIndex) More...
 

Detailed Description

Node values (position etc.) are double-buffered.

A SceneGraphBuffers object can be used to keep track of which buffers are being written or read.

Definition at line 37 of file scene-graph-buffers.h.

Constructor & Destructor Documentation

Dali::Internal::SceneGraph::SceneGraphBuffers::SceneGraphBuffers ( )

Create a SceneGraphBuffers object.

Definition at line 33 of file scene-graph-buffers.cpp.

Dali::Internal::SceneGraph::SceneGraphBuffers::~SceneGraphBuffers ( )

Non-virtual destructor; not intended as a base class.

Definition at line 39 of file scene-graph-buffers.cpp.

Dali::Internal::SceneGraph::SceneGraphBuffers::SceneGraphBuffers ( const SceneGraphBuffers )
private

Member Function Documentation

BufferIndex Dali::Internal::SceneGraph::SceneGraphBuffers::GetEventBufferIndex ( ) const
inline

Retrieve the current event-buffer index.

Returns
The buffer index.

Definition at line 58 of file scene-graph-buffers.h.

References mEventBufferIndex.

Referenced by Dali::Internal::SceneGraph::UpdateManager::GetEventBufferIndex().

Here is the caller graph for this function:

BufferIndex Dali::Internal::SceneGraph::SceneGraphBuffers::GetUpdateBufferIndex ( ) const
inline

Retrieve the current update-buffer index.

Returns
The buffer index.

Definition at line 64 of file scene-graph-buffers.h.

References mUpdateBufferIndex.

Referenced by Dali::Internal::SceneGraph::ObjectOwnerContainer< Dali::Internal::SceneGraph::Renderer >::Add(), Dali::Internal::SceneGraph::RenderMessageDispatcher::AddGeometry(), Dali::Internal::SceneGraph::RenderMessageDispatcher::AddPropertyBuffer(), Dali::Internal::SceneGraph::UpdateManager::AddPropertyBuffer(), Dali::Internal::SceneGraph::RenderMessageDispatcher::AddRenderer(), Dali::Internal::SceneGraph::RenderMessageDispatcher::AddRenderTracker(), Dali::Internal::SceneGraph::UpdateManager::AddSampler(), Dali::Internal::SceneGraph::UpdateManager::AddShader(), Dali::Internal::SceneGraph::UpdateManager::DestroyNode(), Dali::Internal::SceneGraph::UpdateManager::DisconnectNode(), Dali::Internal::SceneGraph::TextureCache::DispatchCreateGlTexture(), Dali::Internal::SceneGraph::TextureCache::DispatchCreateTexture(), Dali::Internal::SceneGraph::TextureCache::DispatchCreateTextureForBitmap(), Dali::Internal::SceneGraph::TextureCache::DispatchCreateTextureForFrameBuffer(), Dali::Internal::SceneGraph::TextureCache::DispatchCreateTextureForNativeImage(), Dali::Internal::SceneGraph::TextureCache::DispatchDiscardTexture(), Dali::Internal::SceneGraph::TextureCache::DispatchUpdateTexture(), Dali::Internal::SceneGraph::TextureCache::DispatchUpdateTextureArea(), Dali::Internal::SceneGraph::ObjectOwnerContainer< Dali::Internal::SceneGraph::Renderer >::Remove(), Dali::Internal::SceneGraph::UpdateManager::RemoveAnimation(), Dali::Internal::SceneGraph::RenderMessageDispatcher::RemoveGeometry(), Dali::Internal::SceneGraph::RenderMessageDispatcher::RemovePropertyBuffer(), Dali::Internal::SceneGraph::UpdateManager::RemovePropertyBuffer(), Dali::Internal::SceneGraph::RenderMessageDispatcher::RemoveRenderer(), Dali::Internal::SceneGraph::RenderMessageDispatcher::RemoveRenderTracker(), Dali::Internal::SceneGraph::UpdateManager::RemoveSampler(), Dali::Internal::SceneGraph::UpdateManager::RemoveShader(), Dali::Internal::SceneGraph::UpdateManager::SetBackgroundColor(), Dali::Internal::SceneGraph::UpdateManager::SetDefaultSurfaceRect(), Dali::Internal::SceneGraph::UpdateManager::SetFilterMode(), Dali::Internal::SceneGraph::RenderMessageDispatcher::SetGeometryRequiresDepthTest(), Dali::Internal::SceneGraph::RenderMessageDispatcher::SetGeometryType(), Dali::Internal::SceneGraph::UpdateManager::SetPropertyBufferData(), Dali::Internal::SceneGraph::UpdateManager::SetPropertyBufferFormat(), Dali::Internal::SceneGraph::UpdateManager::SetPropertyBufferSize(), Dali::Internal::SceneGraph::UpdateManager::SetShaderProgram(), Dali::Internal::SceneGraph::UpdateManager::SetWrapMode(), Dali::Internal::SceneGraph::UpdateManager::StopAnimation(), and Dali::Internal::SceneGraph::UpdateManager::Update().

Here is the caller graph for this function:

SceneGraphBuffers& Dali::Internal::SceneGraph::SceneGraphBuffers::operator= ( const SceneGraphBuffers rhs)
private
void Dali::Internal::SceneGraph::SceneGraphBuffers::Swap ( )

Swap the Event & Update buffer indices.

Definition at line 43 of file scene-graph-buffers.cpp.

References mEventBufferIndex, and mUpdateBufferIndex.

Referenced by Dali::Internal::SceneGraph::UpdateManager::Update().

Here is the caller graph for this function:

Member Data Documentation

BufferIndex Dali::Internal::SceneGraph::SceneGraphBuffers::INITIAL_EVENT_BUFFER_INDEX = 0u
static

Definition at line 41 of file scene-graph-buffers.h.

BufferIndex Dali::Internal::SceneGraph::SceneGraphBuffers::INITIAL_UPDATE_BUFFER_INDEX = 1u
static

Definition at line 42 of file scene-graph-buffers.h.

BufferIndex Dali::Internal::SceneGraph::SceneGraphBuffers::mEventBufferIndex
private

0 or 1 (opposite of mUpdateBufferIndex)

Definition at line 81 of file scene-graph-buffers.h.

Referenced by GetEventBufferIndex(), and Swap().

BufferIndex Dali::Internal::SceneGraph::SceneGraphBuffers::mUpdateBufferIndex
private

0 or 1 (opposite of mEventBufferIndex)

Definition at line 82 of file scene-graph-buffers.h.

Referenced by GetUpdateBufferIndex(), and Swap().


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