light.H

00001 /*
00002  * This file is part of the "Archon" framework.
00003  * (http://files3d.sourceforge.net)
00004  *
00005  * Copyright © 2002 by Kristian Spangsege and Brian Kristiansen.
00006  *
00007  * Permission to use, copy, modify, and distribute this software and
00008  * its documentation under the terms of the GNU General Public License is
00009  * hereby granted. No representations are made about the suitability of
00010  * this software for any purpose. It is provided "as is" without express
00011  * or implied warranty. See the GNU General Public License
00012  * (http://www.gnu.org/copyleft/gpl.html) for more details.
00013  *
00014  * The characters in this file are ISO8859-1 encoded.
00015  *
00016  * The documentation in this file is in "Doxygen" style
00017  * (http://www.doxygen.org).
00018  */
00019 
00020 #ifndef ARCHON_RAYTRACER_LIGHT_H
00021 #define ARCHON_RAYTRACER_LIGHT_H
00022 
00023 #include <archon/math/vector.H>
00024 #include <archon/util/color.H>
00025 
00026 namespace Archon
00027 {
00028   namespace Raytracer
00029   {
00030     using namespace Utilities;
00031     using namespace Math;
00032 
00033     class Light
00034     {
00035     private:
00036       Vector3 position;
00037       ColorRGBA color;
00038 
00039     public:
00040       Light(const Vector3 &position, const ColorRGBA &color):position(position), color(color) {}
00041 
00042       const Vector3 &getPosition() const { return position; }
00043       const Vector4 &getColor() const { return color; }
00044     };
00045   }
00046 }
00047 
00048 #endif // ARCHON_RAYTRACER_LIGHT_H

Generated on Sun Jul 30 22:55:49 2006 for Archon by  doxygen 1.4.4