diff options
Diffstat (limited to '')
-rw-r--r-- | src/others/mimesh/libg3d-0.0.8/include/g3d/material.h | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/src/others/mimesh/libg3d-0.0.8/include/g3d/material.h b/src/others/mimesh/libg3d-0.0.8/include/g3d/material.h new file mode 100644 index 0000000..d04ea4d --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/include/g3d/material.h | |||
@@ -0,0 +1,64 @@ | |||
1 | /* $Id$ */ | ||
2 | |||
3 | /* | ||
4 | libg3d - 3D object loading library | ||
5 | |||
6 | Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de> | ||
7 | |||
8 | This library is free software; you can redistribute it and/or | ||
9 | modify it under the terms of the GNU Lesser General Public | ||
10 | License as published by the Free Software Foundation; either | ||
11 | version 2.1 of the License, or (at your option) any later version. | ||
12 | |||
13 | This library is distributed in the hope that it will be useful, | ||
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
16 | Lesser General Public License for more details. | ||
17 | |||
18 | You should have received a copy of the GNU Lesser General Public | ||
19 | License along with this library; if not, write to the Free Software | ||
20 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
21 | */ | ||
22 | |||
23 | #ifndef __G3D_MATERIAL_H__ | ||
24 | #define __G3D_MATERIAL_H__ | ||
25 | |||
26 | #include <g3d/types.h> | ||
27 | |||
28 | #ifdef __cplusplus | ||
29 | extern "C" { | ||
30 | #endif /* ifdef __cplusplus */ | ||
31 | |||
32 | /** | ||
33 | * SECTION:material | ||
34 | * @short_description: Material generation and manipulation | ||
35 | * @include: g3d/material.h | ||
36 | * | ||
37 | * A material contains all color, shading and texture information for a | ||
38 | * #G3DFace. | ||
39 | */ | ||
40 | /** | ||
41 | * g3d_material_new | ||
42 | * | ||
43 | * Generates a new material with a default color. | ||
44 | * | ||
45 | * Returns: the new material or NULL on error | ||
46 | */ | ||
47 | EAPI | ||
48 | G3DMaterial *g3d_material_new(void); | ||
49 | |||
50 | /** | ||
51 | * g3d_material_free: | ||
52 | * @material: the material to free | ||
53 | * | ||
54 | * Frees all memory allocated for that material. | ||
55 | */ | ||
56 | EAPI | ||
57 | void g3d_material_free(G3DMaterial *material); | ||
58 | |||
59 | #ifdef __cplusplus | ||
60 | } | ||
61 | #endif /* ifdef __cplusplus */ | ||
62 | |||
63 | #endif /* __G3D_MATERIAL_H__ */ | ||
64 | |||