Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[Manta] r2131 - trunk/Model/Backgrounds


Chronological Thread 
  • From: "Solomon Boulos" <boulos@cs.utah.edu>
  • To: manta@sci.utah.edu
  • Subject: [Manta] r2131 - trunk/Model/Backgrounds
  • Date: Wed, 27 Feb 2008 16:30:55 -0700 (MST)

Author: boulos
Date: Wed Feb 27 16:30:54 2008
New Revision: 2131

Modified:
   trunk/Model/Backgrounds/ConstantBackground.cc
   trunk/Model/Backgrounds/ConstantBackground.h
Log:
Model/Backgrounds/ConstantBackground.cc
Model/Backgrounds/ConstantBackground.h

 Adding accessor methods for ConstantBackground similar to Constant
 textures.


Modified: trunk/Model/Backgrounds/ConstantBackground.cc
==============================================================================
--- trunk/Model/Backgrounds/ConstantBackground.cc       (original)
+++ trunk/Model/Backgrounds/ConstantBackground.cc       Wed Feb 27 16:30:54 
2008
@@ -24,6 +24,14 @@
 {
 }
 
+Color ConstantBackground::getValue() const {
+  return bgcolor;
+}
+
+void ConstantBackground::setValue(Color new_color) {
+  bgcolor = new_color;
+}
+
 void ConstantBackground::shade(const RenderContext&, RayPacket& rays) const
 {
 #ifdef MANTA_SSE

Modified: trunk/Model/Backgrounds/ConstantBackground.h
==============================================================================
--- trunk/Model/Backgrounds/ConstantBackground.h        (original)
+++ trunk/Model/Backgrounds/ConstantBackground.h        Wed Feb 27 16:30:54 
2008
@@ -16,6 +16,9 @@
     virtual void preprocess(const PreprocessContext& context);
     virtual void shade(const RenderContext& context, RayPacket& rays) const;
 
+    Color getValue() const;
+    void setValue(Color new_color);
+
     void readwrite(ArchiveElement* archive);
   private:
     Color bgcolor;




  • [Manta] r2131 - trunk/Model/Backgrounds, Solomon Boulos, 02/27/2008

Archive powered by MHonArc 2.6.16.

Top of page