Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[Manta] Light::setColor()?


Chronological Thread 
  • From: Li-Ta Lo < >
  • To:
  • Subject: [Manta] Light::setColor()?
  • Date: Tue, 17 Jun 2008 17:11:13 -0600
  • Organization: Los Alamos National Lab

Hi,

Why isn't there a Light::setColor() method but each subclass implements
exactly the same thing again and again?


 Lights]$ grep setColor *.h
AreaLight.h:    void setColor(Color new_c) { color = new_c; }
DirectionalLight.h:    void setColor(Color new_c) { color = new_c; }
HeadLight.h:    void setColor(const Color& new_c) { color = new_c; }
PointLight.h:    void setColor(Color new_c) { color = new_c; }

Ollie





Archive powered by MHonArc 2.6.16.

Top of page