Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

Material.cpp

00001 /*************************************************************************** 00002 * This file is part of OpenCAL: Open Computer Animation Library * 00003 * I created OpenCAL as my master's thesis Computer Science (multimedia) * 00004 * at the tUL university in Diepenbeek, Belgium * 00005 * * 00006 * Copyright (C) 2003-2004 by Jeroen Dierckx * 00007 * jeroen.dierckx@student.luc.ac.be * 00008 * * 00009 ***************************************************************************/ 00010 00011 // Includes 00012 #include "Material.h" 00013 using namespace OpenCAL::Utils; 00014 00015 00016 /****************************** 00017 * Constructors and destructor * 00018 ******************************/ 00019 00020 Material::Material() 00021 { 00022 reset(); 00023 } 00024 00025 Material::~Material() 00026 { 00027 } 00028 00029 00030 /****************** 00031 * Other functions * 00032 ******************/ 00033 00034 void Material::reset() 00035 { 00036 m_ambient = Color::white; 00037 m_diffuse = Color::white; 00038 m_specular = Color::black; 00039 m_emission = Color::black; 00040 m_shininess = 0.0f; 00041 } 00042 00043 /* 00044 #ifdef USE_OPENGL 00045 void Material::applyGL(GLenum side) 00046 { 00047 glMaterialfv(side, GL_AMBIENT, m_ambient.get()); 00048 glMaterialfv(side, GL_DIFFUSE, m_diffuse.get()); 00049 glMaterialfv(side, GL_SPECULAR, m_specular.get()); 00050 glMaterialfv(side, GL_EMISSION, m_emission.get()); 00051 glMaterialf(side, GL_SHININESS, m_shininess); 00052 } 00053 #endif // USE_OPENGL 00054 */

Generated on Sun Aug 15 19:19:22 2004 for OpenCAL: Open Computer Animation Library by doxygen 1.3.8