set up the treeview reflections
[hkl.git] / gui / g3d.vapi
blob8b38b0658f87063dd19bd238272f0fe01d68ebe1
1 /*
2  * This file is part of the hkl library.
3  *
4  * The hkl library is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * The hkl library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with the hkl library.  If not, see <http://www.gnu.org/licenses/>.
16  *
17  * Copyright (C) 2010-2011 Synchrotron SOLEIL
18  *                         L'Orme des Merisiers Saint-Aubin
19  *                         BP 48 91192 GIF-sur-YVETTE CEDEX
20  *
21  * Authors: Picca Frédéric-Emmanuel <picca@synchrotron-soleil.fr>
22  */
24 [CCode (cheader_filename="g3d/g3d.h")]
25 namespace G3D
27         public struct Vector : float {}
29         [CCode (ref_function="", unref_function="")]
30         public class Face
31         {
32                 public Material material;
33                 public uint32 *vertex_indices;
35         }
37         [Compact]
38         public class Material
39         {
40                 public float a;
41         }
43         public struct Transformation
44         {
45                 public float matrix[16];
46         }
48         [Compact]
49         public class Object
50         {
51                 public GLib.SList<Face> faces;
52                 public G3D.Vector *vertex_data;
53                 public Transformation? transformation;
54         }