1 #ifndef DALI_TOOLKIT_ATLAS_MESH_FACTORY_H
2 #define DALI_TOOLKIT_ATLAS_MESH_FACTORY_H
5 * Copyright (c) 2021 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
21 #include <dali-toolkit/internal/text/rendering/atlas/atlas-manager.h>
29 namespace AtlasMeshFactory
31 typedef uint32_t SizeType;
34 * @brief Create a Quad that describes an area in an atlas and a position.
36 * @param[in] width Width of area in pixels.
37 * @param[in] height Height of area in pixels.
38 * @param[in] block Block position in atlas.
39 * @param[in] atlasSize Atlas and block dimensions.
40 * @param[in] position Position to place area in space.
41 * @param[out] mesh Mesh object to hold created quad.
43 void CreateQuad(SizeType width,
46 const Toolkit::AtlasManager::AtlasSize& atlasSize,
47 const Vector2& position,
48 Toolkit::AtlasManager::Mesh2D& mesh);
51 * @brief Append one mesh to another.
53 * @param[in,out] first Mesh to append to.
54 * @param[in] second Mesh to append.
56 void AppendMesh(Toolkit::AtlasManager::Mesh2D& first,
57 const Toolkit::AtlasManager::Mesh2D& second);
59 } // namespace AtlasMeshFactory
61 } // namespace Internal
63 } // namespace Toolkit
67 #endif // DALI_TOOLKIT_ATLAS_MESH_FACTORY_H