COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
coMaterial.h
Go to the documentation of this file.
1 /* This file is part of COVISE.
2 
3  You can use it under the terms of the GNU Lesser General Public License
4  version 2.1 or later, see lgpl-2.1.txt.
5 
6  * License: LGPL 2+ */
7 
8 #ifndef __coMaterial_H
9 
10 #define __coMaterial_H
11 
12 #include "DLinkList.h"
13 #include "coTypes.h"
14 
15 namespace covise
16 {
17 
19 {
20 public:
21  char *name;
22  float ambientColor[3];
23  float diffuseColor[3];
24  float specularColor[3];
25  float emissiveColor[3];
26  float shininess;
27  float transparency;
28  coMaterial(const char *n, float *ambient, float *diffuse, float *specular, float *emissive, float shininess, float transparency);
29  coMaterial(const char *n, const char *filename);
30  ~coMaterial();
31 };
32 
33 class UTILEXPORT coMaterialList : public DLinkList<coMaterial *>
34 {
35 public:
36  coMaterialList(const char *);
37  void add(const char *);
38  coMaterial *get(const char *str);
39 };
40 }
41 #endif
Definition: coMaterial.h:18
GLdouble n
Definition: khronos-glext.h:8447
char * name
Definition: coMaterial.h:21
float shininess
Definition: coMaterial.h:26
Definition: DLinkList.h:59
float transparency
Definition: coMaterial.h:27
Definition: coMaterial.h:33
#define UTILEXPORT
Definition: coExport.h:182