Dali 3D User Interface Engine
Typedefs | Functions
Dali::Toolkit::Internal::AtlasMeshFactory Namespace Reference

Typedefs

typedef uint32_t SizeType
 

Functions

void CreateQuad (SizeType width, SizeType height, SizeType block, const Toolkit::AtlasManager::AtlasSize &atlasSize, const Vector2 &position, Toolkit::AtlasManager::Mesh2D &mesh)
 Create a Quad that describes an area in an atlas and a position. More...
 
void AppendMesh (Toolkit::AtlasManager::Mesh2D &first, const Toolkit::AtlasManager::Mesh2D &second)
 Append one mesh to another. More...
 

Typedef Documentation

Definition at line 34 of file atlas-mesh-factory.h.

Function Documentation

void Dali::Toolkit::Internal::AtlasMeshFactory::AppendMesh ( Toolkit::AtlasManager::Mesh2D &  first,
const Toolkit::AtlasManager::Mesh2D &  second 
)

Append one mesh to another.

Parameters
[in,out]firstMesh to append to.
[in]secondMesh to append.

Definition at line 138 of file atlas-mesh-factory.cpp.

References Dali::Vector< T, IsTrivialType >::Begin(), Dali::Vector< T, IsTrivialType >::End(), Dali::Vector< T, IsTrivialType >::Insert(), Dali::Toolkit::AtlasManager::Mesh2D::mIndices, Dali::Toolkit::AtlasManager::Mesh2D::mVertices, and Dali::VectorBase::Size().

Referenced by Dali::Toolkit::Text::AtlasRenderer::Impl::GenerateUnderlines(), and Dali::Toolkit::Text::AtlasRenderer::Impl::StitchTextMesh().

Here is the call graph for this function:

Here is the caller graph for this function:

void Dali::Toolkit::Internal::AtlasMeshFactory::CreateQuad ( SizeType  width,
SizeType  height,
SizeType  block,
const Toolkit::AtlasManager::AtlasSize &  atlasSize,
const Vector2 &  position,
Toolkit::AtlasManager::Mesh2D &  mesh 
)

Create a Quad that describes an area in an atlas and a position.

Parameters
[in]widthWidth of area in pixels.
[in]heightHeight of area in pixels.
[in]blockBlock position in atlas.
[in]atlasSizeAtlas and block dimensions.
[in]positionPosition to place area in space.
[out]meshMesh object to hold created quad.

Definition at line 32 of file atlas-mesh-factory.cpp.

References Dali::Toolkit::AtlasManager::AtlasSize::mBlockHeight, Dali::Toolkit::AtlasManager::AtlasSize::mBlockWidth, Dali::Toolkit::AtlasManager::AtlasSize::mHeight, Dali::Toolkit::AtlasManager::Mesh2D::mIndices, Dali::Toolkit::AtlasManager::Vertex2D::mPosition, Dali::Toolkit::AtlasManager::Vertex2D::mTexCoords, Dali::Toolkit::AtlasManager::Mesh2D::mVertices, Dali::Toolkit::AtlasManager::AtlasSize::mWidth, Dali::Vector< T, IsTrivialType >::PushBack(), Dali::Vector< T, IsTrivialType >::Reserve(), Dali::Vector2::x, and Dali::Vector2::y.

Referenced by Dali::Toolkit::Internal::AtlasManager::GenerateMeshData().

Here is the call graph for this function:

Here is the caller graph for this function:

Dali Docs Home
Read more about Dali