Debian Codegraph @

src/model/ac3dmaterial.h

raw symbols SCIP
1 /***************************************************************************
2 AC3DMaterial.h - description
3 -------------------
4 begin : june 29th, 05
5 copyright : (C) 2005-2006 by Duong Khang NGUYEN
6 email : neoneurone @ gmail com
7
8 $Id: ac3dmaterial.h 375 2008-10-28 14:47:15Z neoneurone $
9 ***************************************************************************/
10
11 /***************************************************************************
12 * *
13 * This program is free software; you can redistribute it and/or modify *
14 * it under the terms of the GNU General Public License as published by *
15 * the Free Software Foundation; either version 2 of the License, or *
16 * any later version. *
17 * *
18 ***************************************************************************/
19
20 #ifndef _OPENCITY_AC3DAC3DMATERIAL_H_
21 #define _OPENCITY_AC3DAC3DMATERIAL_H_ 1
22
23 #include <string>
24
25 using std::string;
26
27 namespace AC3D {
28
29
30 /** RGBA float color structure
31 */
32 struct Color {
33 Color( float r, float g, float b ):fR(r),fG(g),fB(b){}
34 float fR, fG, fB;
35 };
36
37
38 //========================================================================
39 /** This class represents the material used by the AC3D models
40 \author Duong Khang NGUYEN
41 */
42 class AC3DMaterial{
43 public:
44 AC3DMaterial();
45 AC3DMaterial( const string data );
46
47 ~AC3DMaterial();
48
49
50 //========================================================================
51 string ToStr() const; // debug method
52
53 string strName;
54 Color rgb; ///< The RGB value of the material
55 Color amb; ///< The ambiance light value
56 Color emis; ///< The emission light value
57 Color spec; ///< The specular light value
58 float shi; ///< ?
59 float trans; ///< The transparence value
60 };
61
62 }
63
64 #endif
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85