Revert "License conversion from Flora to Apache 2.0"
[platform/core/uifw/dali-core.git] / dali / internal / event / text / generator / text-vertex-generator.h
1 #ifndef __DALI_INTERNAL_TEXT_VERTEX_GENERATOR_H__
2 #define __DALI_INTERNAL_TEXT_VERTEX_GENERATOR_H__
3
4 //
5 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
6 //
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
10 //
11 //     http://floralicense.org/license/
12 //
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.
18 //
19
20 // EXTERNAL INCLUDES
21
22 // INTERNAL INCLUDES
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>
29
30 namespace Dali
31 {
32
33 namespace Internal
34 {
35
36 /**
37  * Creates the vertex data for a string of text.
38  *
39  */
40 namespace TextVertexGenerator
41 {
42
43 /**
44  * Get the vertex buffer to draw the text.
45  * The caller takes ownership of the buffer and is responsible for
46  * deleting it.
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
53  */
54  TextVertexBuffer* Generate(const TextArray& text,
55                             const TextFormat& format,
56                             const FontMetricsInterface& metrics,
57                             const AtlasUvInterface& uvInterface,
58                             const FontId fontId);
59
60
61
62 };
63
64
65
66 } // namespace Internal
67
68 } // namespace Dali
69
70 #endif // __DALI_INTERNAL_TEXT_VERTEX_GENERATOR_H__