Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[MANTA] r1571 - trunk/Engine/PixelSamplers


Chronological Thread 
  • From: abe@sci.utah.edu
  • To: manta@sci.utah.edu
  • Subject: [MANTA] r1571 - trunk/Engine/PixelSamplers
  • Date: Fri, 27 Jul 2007 20:48:22 -0600 (MDT)

Author: abe
Date: Fri Jul 27 20:48:22 2007
New Revision: 1571

Modified:
   trunk/Engine/PixelSamplers/JitterSampler.h
Log:

Added constructor for ease in using from python.
M    Engine/PixelSamplers/JitterSampler.h


Modified: trunk/Engine/PixelSamplers/JitterSampler.h
==============================================================================
--- trunk/Engine/PixelSamplers/JitterSampler.h  (original)
+++ trunk/Engine/PixelSamplers/JitterSampler.h  Fri Jul 27 20:48:22 2007
@@ -19,6 +19,9 @@
   class JitterSampler : public PixelSampler {
   public:
     JitterSampler(const vector<string>& args);
+    JitterSampler( const int nx_, const int ny_, bool cheap_ = false ) :
+      num_samples( nx_ * ny_ ), nx( nx_ ), ny( ny_ ), use_cheaprng( cheap_ ) 
{ }
+
     virtual ~JitterSampler();
     virtual void setupBegin(const SetupContext&, int numChannels);
     virtual void setupDisplayChannel(SetupContext&);




  • [MANTA] r1571 - trunk/Engine/PixelSamplers, abe, 07/27/2007

Archive powered by MHonArc 2.6.16.

Top of page