Text archives Help
- From: sparker@sci.utah.edu
- To: manta@sci.utah.edu
- Subject: [Manta] r1853 - trunk/Interface
- Date: Mon, 19 Nov 2007 23:45:41 -0700 (MST)
Author: sparker
Date: Mon Nov 19 23:45:40 2007
New Revision: 1853
Modified:
trunk/Interface/Packet.h
Log:
Added a convenience method to fill a Packet with a constant value.
Modified: trunk/Interface/Packet.h
==============================================================================
--- trunk/Interface/Packet.h (original)
+++ trunk/Interface/Packet.h Mon Nov 19 23:45:40 2007
@@ -40,6 +40,13 @@
colordata[1][idx] = value[1];
colordata[2][idx] = value[2];
}
+ void fill(int start, int end, const Color& value) {
+ for(int i=start;i<end;i++){
+ colordata[0][i] = value[0];
+ colordata[1][i] = value[1];
+ colordata[2][i] = value[2];
+ }
+ }
};
template<>
class MANTA_ALIGN(16) Packet<Vector> {
- [Manta] r1853 - trunk/Interface, sparker, 11/20/2007
Archive powered by MHonArc 2.6.16.