Manta Interactive Ray Tracer Development Mailing List

Text archives Help


Re: [Manta] r1665 - in trunk: Model/Textures SwigInterface


Chronological Thread 
  • From: James Bigler <bigler@sci.utah.edu>
  • To: leenak@sci.utah.edu
  • Cc: manta@sci.utah.edu
  • Subject: Re: [Manta] r1665 - in trunk: Model/Textures SwigInterface
  • Date: Sun, 19 Aug 2007 20:50:00 -0600

> +  class CloudTexture : public Texture< ValueType > {

> +    skycolor=Color(RGBColor(1,1,1))-Color(RGBColor(0,0,1));

Is there a particular reason you templated this class? It looks like you are expecting ValueType to be a Color, so why not just make it one. You can then do this and then put all the function definitions into the .cc file.

class CouldTexture: public Texture<Color> {
public:
  Color skycolor;
};

The rest of the code looks pretty good. Maybe you could send out some screen shots to the Manta mailing list to show off your hard work!

James





Archive powered by MHonArc 2.6.16.

Top of page