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 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.
24 #include <dali/internal/common/text-array.h>
25 #include <dali/internal/event/text/text-format.h>
26 #include <dali/internal/common/text-vertex-buffer.h>
27 #include <dali/internal/event/text/font-metrics-interface.h>
28 #include <dali/internal/event/text/atlas/atlas-uv-interface.h>
29 #include <dali/internal/event/text/resource/font-id.h>
38 * Creates the vertex data for a string of text.
41 namespace TextVertexGenerator
45 * Get the vertex buffer to draw the text.
46 * The caller takes ownership of the buffer and is responsible for
48 * @param[in] text text array
49 * @param[in] format text format
50 * @param[in] metrics interface to get metric information
51 * @param[in] uvInterface interface to get uv co-ordinates of each characters
52 * @param[in] fontId the font id
53 * @return text vertex buffer
55 TextVertexBuffer* Generate(const TextArray& text,
56 const TextFormat& format,
57 const FontMetricsInterface& metrics,
58 const AtlasUvInterface& uvInterface,
67 } // namespace Internal
71 #endif // __DALI_INTERNAL_TEXT_VERTEX_GENERATOR_H__