COVISE Core
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 "list"
13#include "coTypes.h"
14
15namespace covise
16{
17
19{
20public:
21 char *name;
22 float ambientColor[3];
23 float diffuseColor[3];
24 float specularColor[3];
25 float emissiveColor[3];
26 float shininess;
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);
31};
32
33class UTILEXPORT coMaterialList : public std::list<coMaterial *>
34{
35public:
36 coMaterialList(const char *);
38 void add(const char *);
39 coMaterial *get(const char *str);
40};
41}
42#endif
#define UTILEXPORT
Definition: coExport.h:206
GLdouble n
Definition: khronos-glext.h:8447
list of all chemical elements
Definition: coConfig.h:27
T get(TokenBuffer &tb)
Definition: tokenbuffer_util.h:15
Definition: coMaterial.h:19
float transparency
Definition: coMaterial.h:27
char * name
Definition: coMaterial.h:21
float shininess
Definition: coMaterial.h:26
Definition: coMaterial.h:34