Main Page   Namespace List   Class Hierarchy   Compound List   File List   Header Files   Namespace Members   Compound Members   File Members   Related Pages  

/msg/src/other/color.h

This is the verbatim text of the color.h include file.
/* -*- C++ -*-
 * color.h
 * $Id: color.h,v 1.1.1.1 2000/07/20 20:54:14 ghali Exp $
 */

#ifndef COLOR_H
#define COLOR_H

#include <iostream.h>
namespace MSG {

  class Color {
  private:
    float r,g,b;
  public:
    Color(float _r=0.0, float _g=0.0, float _b=0.0);

    static Color defaultAmbientLight;
    static Color defaultDiffuseLight;
    static Color defaultSpecularLight;

    static Color defaultAmbientMaterial;
    static Color defaultDiffuseMaterial;
    static Color defaultSpecularMaterial;
    static Color defaultEmissivityMaterial;

    float R() const;
    float G() const;
    float B() const;
    friend ostream& operator<<( ostream& out, const Color& lc );
  };
}
#endif

Generated at Sat Jul 22 00:32:14 2000 for MSG by doxygen 1.0.0 written by Dimitri van Heesch, © 1997-1999