1 #ifndef __DALI_INTERNAL_TEXT_VERTEX_GENERATOR_H__
2 #define __DALI_INTERNAL_TEXT_VERTEX_GENERATOR_H__
5 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
7 // Licensed under the Flora License, Version 1.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://floralicense.org/license/
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.
23 #include <dali/internal/common/text-array.h>
24 #include <dali/internal/event/text/text-format.h>
25 #include <dali/internal/common/text-vertex-buffer.h>
26 #include <dali/internal/event/text/font-metrics-interface.h>
27 #include <dali/internal/event/text/atlas/atlas-uv-interface.h>
28 #include <dali/internal/event/text/resource/font-id.h>
37 * Creates the vertex data for a string of text.
40 namespace TextVertexGenerator
44 * Get the vertex buffer to draw the text.
45 * The caller takes ownership of the buffer and is responsible for
47 * @param[in] text text array
48 * @param[in] format text format
49 * @param[in] metrics interface to get metric information
50 * @param[in] uvInterface interface to get uv co-ordinates of each characters
51 * @param[in] fontId the font id
52 * @return text vertex buffer
54 TextVertexBuffer* Generate(const TextArray& text,
55 const TextFormat& format,
56 const FontMetricsInterface& metrics,
57 const AtlasUvInterface& uvInterface,
66 } // namespace Internal
70 #endif // __DALI_INTERNAL_TEXT_VERTEX_GENERATOR_H__