Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

GLMaterial.cpp

Go to the documentation of this file.
00001 #include "GLMaterial.h"
00002 #include "Material.h"
00003 
00004 using namespace X3DTK;
00005 using namespace std;
00006 
00007 GLMaterial::GLMaterial()
00008 : X3DGLMaterialNode(), _diffuseColor(MFFloat(4)), _ambientColor(MFFloat(4)), _emissiveColor(MFFloat(4)), _shininess(0.0f), _specularColor(MFFloat(4))
00009 {
00010   defineTagName("GLMaterial", "GLShape");
00011 }
00012 
00013 GLMaterial::GLMaterial(const GLMaterial &M)
00014 : X3DGLMaterialNode(M), _diffuseColor(M._diffuseColor), _ambientColor(M._ambientColor), _emissiveColor(M._emissiveColor), _shininess(M._shininess), _specularColor(M._specularColor)
00015 {
00016   defineTagName("GLMaterial", "GLShape");
00017 }
00018 
00019 SFNode GLMaterial::clone() const
00020 {
00021   return new GLMaterial(*this);
00022 }
00023 
00024 GLMaterial::~GLMaterial()
00025 {
00026 }

Generated on Wed May 14 10:03:09 2003 for X3DToolKit by doxygen1.3