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

Class to encapsulate double buffered render instruction data. More...

#include <render-instruction-container.h>

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

Public Member Functions

 RenderInstructionContainer ()
 Constructor. More...
 
 ~RenderInstructionContainer ()
 Destructor. More...
 
void ResetAndReserve (BufferIndex bufferIndex, size_t capacityRequired)
 Reset the container index and reserve space in the container if needed. More...
 
size_t Count (BufferIndex bufferIndex)
 Return the count of instructions in the container. More...
 
RenderInstructionGetNextInstruction (BufferIndex bufferIndex)
 Get a reference to the next instruction. More...
 
RenderInstructionAt (BufferIndex bufferIndex, size_t index)
 Get a reference to the instruction at index. More...
 

Private Types

typedef OwnerContainer
< RenderInstruction * > 
InstructionContainer
 

Private Attributes

unsigned int mIndex [2]
 count of the elements that have been added More...
 
InstructionContainer mInstructions [2]
 

Detailed Description

Class to encapsulate double buffered render instruction data.

Definition at line 38 of file render-instruction-container.h.

Member Typedef Documentation

Definition at line 82 of file render-instruction-container.h.

Constructor & Destructor Documentation

Dali::Internal::SceneGraph::RenderInstructionContainer::RenderInstructionContainer ( )

Constructor.

Definition at line 33 of file render-instruction-container.cpp.

References mIndex.

Dali::Internal::SceneGraph::RenderInstructionContainer::~RenderInstructionContainer ( )

Destructor.

Definition at line 40 of file render-instruction-container.cpp.

Member Function Documentation

RenderInstruction & Dali::Internal::SceneGraph::RenderInstructionContainer::At ( BufferIndex  bufferIndex,
size_t  index 
)

Get a reference to the instruction at index.

Parameters
bufferIndexto use
indexto use

Definition at line 76 of file render-instruction-container.cpp.

References Count(), DALI_ASSERT_DEBUG, and mInstructions.

Referenced by GetNextInstruction(), and Dali::Internal::SceneGraph::RenderManager::Render().

Here is the call graph for this function:

Here is the caller graph for this function:

size_t Dali::Internal::SceneGraph::RenderInstructionContainer::Count ( BufferIndex  bufferIndex)

Return the count of instructions in the container.

Parameters
bufferIndexto use
Returns
the count of elements

Definition at line 63 of file render-instruction-container.cpp.

References mIndex.

Referenced by At(), and Dali::Internal::SceneGraph::RenderManager::Render().

Here is the caller graph for this function:

RenderInstruction & Dali::Internal::SceneGraph::RenderInstructionContainer::GetNextInstruction ( BufferIndex  bufferIndex)

Get a reference to the next instruction.

Parameters
bufferIndexto use

Definition at line 70 of file render-instruction-container.cpp.

References At(), and mIndex.

Referenced by Dali::Internal::SceneGraph::PrepareRenderInstruction().

Here is the call graph for this function:

Here is the caller graph for this function:

void Dali::Internal::SceneGraph::RenderInstructionContainer::ResetAndReserve ( BufferIndex  bufferIndex,
size_t  capacityRequired 
)

Reset the container index and reserve space in the container if needed.

Parameters
bufferIndexto reset
capacityRequiredin the container

Definition at line 45 of file render-instruction-container.cpp.

References Dali::VectorBase::Capacity(), mIndex, mInstructions, Dali::Vector< T, IsTrivialType >::PushBack(), and Dali::Vector< T, IsTrivialType >::Reserve().

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

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

unsigned int Dali::Internal::SceneGraph::RenderInstructionContainer::mIndex[2]
private

count of the elements that have been added

Definition at line 81 of file render-instruction-container.h.

Referenced by Count(), GetNextInstruction(), RenderInstructionContainer(), and ResetAndReserve().

InstructionContainer Dali::Internal::SceneGraph::RenderInstructionContainer::mInstructions[2]
private

Definition at line 83 of file render-instruction-container.h.

Referenced by At(), and ResetAndReserve().


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