Main Page   Namespace List   Compound List   File List   Compound Members   File Members  

RGB.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2003 Eric Bohm
00003  *
00004  *This program is free software; you can redistribute it and/or modify
00005  *it under the terms of the GNU General Public License as published by
00006  *the Free Software Foundation version 2 of the License.
00007  * 
00008  *This program is distributed in the hope that it will be useful, but
00009  *WITHOUT ANY WARRANTY; without even the implied warranty of
00010  *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011  *General Public License for more details.
00012  * 
00013  *You should have received a copy of the GNU General Public License along
00014  *with this program; if not, write to the Free Software Foundation, Inc.,
00015  *675 Mass Ave, Cambridge, MA 02139, USA.
00016  *
00017  */
00018 
00020 class RGB 
00021 {
00022   public:
00023   GLfloat rgb[3];
00024   RGB(GLfloat *irgb)
00025     {
00026       rgb[0]=irgb[0];
00027       rgb[1]=irgb[1];
00028       rgb[2]=irgb[2];
00029     }
00030   RGB()
00031     {
00032       rgb[0]=0.0;
00033       rgb[1]=0.0;
00034       rgb[2]=0.0;
00035     }
00037   RGB & operator=(const RGB & obj)
00038     {  
00039       rgb[0]=obj.rgb[0];
00040       rgb[1]=obj.rgb[1];
00041       rgb[2]=obj.rgb[2];
00042       return *this;
00043     }
00044   
00045 };

Generated on Wed Oct 29 10:01:52 2003 for Tetraviewer by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002