/*
- * Copyright (c) 2024 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2025 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
struct BackgroundMesh
{
Vector<BackgroundVertex> mVertices; ///< container of vertices
- Vector<unsigned short> mIndices; ///< container of indices
+ Vector<uint32_t> mIndices; ///< container of indices
};
} // unnamed namespace
const float offsetX = mHighlightPosition.x + 0.5f * mHighlightSize.width;
const float offsetY = mHighlightPosition.y + 0.5f * mHighlightSize.height;
- Vector<Vector2> vertices;
- Vector<unsigned short> indices;
+ Vector<Vector2> vertices;
+ Vector<uint32_t> indices;
vertices.Reserve(4u * numberOfQuads);
indices.Reserve(6u * numberOfQuads);
#define DALI_TOOLKIT_ATLAS_MANAGER_H
/*
- * Copyright (c) 2022 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2025 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
struct Mesh2D
{
- Vector<Vertex2D> mVertices; ///< container of vertices
- Vector<unsigned short> mIndices; ///< container of indices
+ Vector<Vertex2D> mVertices; ///< container of vertices
+ Vector<uint32_t> mIndices; ///< container of indices
};
/**
/*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2025 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
second.mIndices.Begin(),
second.mIndices.End());
- for(Vector<unsigned short>::Iterator it = first.mIndices.Begin() + indicesCount,
- endIt = first.mIndices.End();
+ for(Vector<uint32_t>::Iterator it = first.mIndices.Begin() + indicesCount,
+ endIt = first.mIndices.End();
it != endIt;
++it)
{
const UnderlineStyleProperties& viewUnderlineProperties,
const std::map<uint32_t, UnderlineStyleProperties>& mapUnderlineChunkIdWithProperties)
{
-
for(Vector<Extent>::ConstIterator eIt = extents.Begin(),
eEndIt = extents.End();
eIt != eEndIt;
float brx = eIt->mRight;
AtlasManager::Mesh2D newMesh;
- unsigned short faceIndex = 0;
+ uint32_t faceIndex = 0;
if(underlineType == Text::Underline::Type::DASHED)
{
float strikethroughPosition = eIt->mLinePosition;
AtlasManager::Mesh2D newMesh;
- unsigned short faceIndex = 0;
+ uint32_t faceIndex = 0;
vert.mPosition.x = tlx;
vert.mPosition.y = strikethroughPosition;
/*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2025 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
vertices.PushBack(meshVertex);
}
-void AddTriangle(Vector<unsigned short>& indices, unsigned int v0, unsigned int v1, unsigned int v2)
+void AddTriangle(Vector<uint32_t>& indices, uint32_t v0, uint32_t v1, uint32_t v2)
{
indices.PushBack(v0);
indices.PushBack(v1);
VectorBlobAtlas& atlas,
Dali::TextAbstraction::FontClient& fontClient,
Vector<Vertex2D>& vertices,
- Vector<unsigned short>& indices,
+ Vector<uint32_t>& indices,
const Vector4* const colorsBuffer,
const ColorIndex* const colorIndicesBuffer,
const Vector4& defaultColor)
bool atlasFull(false);
- for(unsigned int i = 0, idx = 0; i < numberOfGlyphs && !atlasFull; ++i)
+ for(uint32_t i = 0u, idx = 0u; i < numberOfGlyphs && !atlasFull; ++i)
{
if(glyphs[i].width > 0 &&
glyphs[i].height > 0)
const ColorIndex* const colorIndicesBuffer = view.GetColorIndices();
const Vector4& defaultColor = view.GetTextColor();
- Vector<Vertex2D> vertices;
- Vector<unsigned short> indices;
+ Vector<Vertex2D> vertices;
+ Vector<uint32_t> indices;
const Vector2& controlSize = view.GetControlSize();
float xOffset = -alignmentOffset + controlSize.width * -0.5f;