4 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
6 * Licensed under the Apache License, Version 2.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
10 * http://www.apache.org/licenses/LICENSE-2.0
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.
20 #include <dali/public-api/dali-core.h>
21 #include <dali/devel-api/geometry/mesh.h>
26 void AddVertex( MeshData::VertexContainer& verts, Vector3 V, Vector2 UV );
27 void SetNormal( MeshData::VertexContainer& verts, size_t vertIdx, Vector3 normal );
28 void SetBone( MeshData::VertexContainer& verts, size_t vertIdx, size_t index, size_t boneIndex, float weight);
29 void SetBones(MeshData::VertexContainer& verts);
30 void ConstructBones(BoneContainer& bones);
31 void CopyVertex( MeshData::Vertex& vert, Vector3& vector );
32 void AddTriangle( MeshData::VertexContainer& verts,
33 MeshData::FaceIndices& faces,
34 size_t v0, size_t v1, size_t v2 );
35 void ConstructVertices( MeshData::VertexContainer& vertices, float sz );
36 void ConstructFaces(MeshData::VertexContainer& vertices, MeshData::FaceIndices& faces);
37 Material ConstructMaterial();
38 Mesh ConstructMesh( float sz );
39 void AddBone(Dali::BoneContainer& bones, const std::string& name, const Dali::Matrix& offsetMatrix);
40 void CreateMeshData(MeshData& meshData);
44 #endif // MESH_BUILDER_H