Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[MANTA] r1333 - trunk/Model/Lights


Chronological Thread 
  • From: bigler@sci.utah.edu
  • To: manta@sci.utah.edu
  • Subject: [MANTA] r1333 - trunk/Model/Lights
  • Date: Wed, 11 Apr 2007 22:40:26 -0600 (MDT)

Author: bigler
Date: Wed Apr 11 22:40:25 2007
New Revision: 1333

Modified:
   trunk/Model/Lights/PointLight.h
Log:

Made the arguments to set the position and color non references for
callback compatibility.


Modified: trunk/Model/Lights/PointLight.h
==============================================================================
--- trunk/Model/Lights/PointLight.h     (original)
+++ trunk/Model/Lights/PointLight.h     Wed Apr 11 22:40:25 2007
@@ -19,10 +19,10 @@
 
     // Accessors
     Vector getPosition() const { return position; }
-    void setPosition(const Vector& new_p) { position = new_p; }
+    void setPosition(Vector new_p) { position = new_p; }
 
     Color getColor() const { return color; }
-    void setColor(const Color& new_c) { color = new_c; }
+    void setColor(Color new_c) { color = new_c; }
     
   private:
     Vector position;




  • [MANTA] r1333 - trunk/Model/Lights, bigler, 04/11/2007

Archive powered by MHonArc 2.6.16.

Top of page