Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[MANTA] r1502 - trunk/Interface


Chronological Thread 
  • From: arobison@sci.utah.edu
  • To: manta@sci.utah.edu
  • Subject: [MANTA] r1502 - trunk/Interface
  • Date: Wed, 18 Jul 2007 18:02:12 -0600 (MDT)

Author: arobison
Date: Wed Jul 18 18:02:12 2007
New Revision: 1502

Modified:
   trunk/Interface/RandomNumberGenerator.h
Log:
Forgot to make these virtual.


Modified: trunk/Interface/RandomNumberGenerator.h
==============================================================================
--- trunk/Interface/RandomNumberGenerator.h     (original)
+++ trunk/Interface/RandomNumberGenerator.h     Wed Jul 18 18:02:12 2007
@@ -60,7 +60,7 @@
     template<class T>
     T next() { return 0; }
 
-    void RandomNumberGenerator::nextPacket(Packet<float>& results, 
RayPacket& rays) {
+    virtual void RandomNumberGenerator::nextPacket(Packet<float>& results, 
RayPacket& rays) {
 #ifdef MANTA_SSE
       Packet<unsigned int> uints;
       nextIntPacket(uints, rays);
@@ -93,7 +93,7 @@
 #endif
     }
 
-    void RandomNumberGenerator::nextPacket(Packet<double>& results, 
RayPacket& rays) {
+    virtual void RandomNumberGenerator::nextPacket(Packet<double>& results, 
RayPacket& rays) {
       for (int i = 0; i < Packet<double>::MaxSize; i++) {
        results.set(i, nextDouble());
       }




  • [MANTA] r1502 - trunk/Interface, arobison, 07/18/2007

Archive powered by MHonArc 2.6.16.

Top of page