Revert "License conversion from Flora to Apache 2.0"
[platform/core/uifw/dali-core.git] / automated-tests / src / dali-unmanaged / dali-test-suite-utils / mesh-builder.h
1 #ifndef MESH_BUILDER_H
2 #define MESH_BUILDER_H
3 //
4 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
5 //
6 // Licensed under the Flora License, Version 1.0 (the License);
7 // you may not use this file except in compliance with the License.
8 // You may obtain a copy of the License at
9 //
10 //     http://floralicense.org/license/
11 //
12 // Unless required by applicable law or agreed to in writing, software
13 // distributed under the License is distributed on an AS IS BASIS,
14 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 // See the License for the specific language governing permissions and
16 // limitations under the License.
17 //
18
19 #include <dali/dali.h>
20 #include <dali/public-api/dali-core.h>
21
22 namespace Dali
23 {
24
25 void AddVertex( MeshData::VertexContainer& verts, Vector3 V, Vector2 UV );
26 void SetNormal( MeshData::VertexContainer& verts, size_t vertIdx, Vector3 normal );
27 void SetBone( MeshData::VertexContainer& verts, size_t vertIdx, size_t index, size_t boneIndex, float weight);
28 void SetBones(MeshData::VertexContainer& verts);
29 void ConstructBones(BoneContainer& bones);
30 void CopyVertex( MeshData::Vertex& vert, Vector3& vector );
31 void AddTriangle( MeshData::VertexContainer& verts,
32                   MeshData::FaceIndices& faces,
33                   size_t v0, size_t v1, size_t v2 );
34 void ConstructVertices( MeshData::VertexContainer& vertices, float sz );
35 void ConstructFaces(MeshData::VertexContainer& vertices, MeshData::FaceIndices& faces);
36 Material ConstructMaterial();
37 Mesh ConstructMesh( float sz );
38 void AddBone(Dali::BoneContainer& bones, const std::string& name, const Dali::Matrix& offsetMatrix);
39 void CreateMeshData(MeshData& meshData);
40 Dali::ModelData BuildTreeModel();
41
42 }
43
44 #endif // MESH_BUILDER_H