Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[MANTA] r319 - trunk/Core/Color


Chronological Thread 
  • From: thiago@sci.utah.edu
  • To: manta@sci.utah.edu
  • Subject: [MANTA] r319 - trunk/Core/Color
  • Date: Fri, 13 May 2005 17:27:36 -0600 (MDT)

Author: thiago
Date: Fri May 13 17:27:36 2005
New Revision: 319

Modified:
   trunk/Core/Color/RGBColor.h
Log:
can get individual colors

Modified: trunk/Core/Color/RGBColor.h
==============================================================================
--- trunk/Core/Color/RGBColor.h (original)
+++ trunk/Core/Color/RGBColor.h Fri May 13 17:27:36 2005
@@ -35,6 +35,18 @@
       return data[2];
     }
 
+    void setR(float r) {
+      data[0] = r;
+    }
+
+    void setG(float g) {
+      data[1] = g;
+    }
+
+    void setB(float b) {
+      data[2] = b;
+    }
+
     float getComponent(int i) const {
       return data[i];
     }




  • [MANTA] r319 - trunk/Core/Color, thiago, 05/13/2005

Archive powered by MHonArc 2.6.16.

Top of page