[Gridflow-cvs] [svn] commit: r3944 - /trunk/base/source_filter.rb

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Wed Jun 25 15:46:14 EDT 2008


Author: matju
Date: Wed Jun 25 15:46:14 2008
New Revision: 3944

Log:
added float32 and float64 qualifiers for grin type

Modified:
    trunk/base/source_filter.rb

Modified: trunk/base/source_filter.rb
==============================================================================
--- trunk/base/source_filter.rb (original)
+++ trunk/base/source_filter.rb Wed Jun 25 15:46:14 2008
@@ -261,10 +261,12 @@
 	frame.grins.each {|i,v|
 		cli = "#{cl}::grinw_#{i}"
 		k = case v[1]
-		when     nil; [1,1,1,1,1,1]
-		when 'int32'; [0,0,1,0,0,0]
-		when   'int'; [1,1,1,1,0,0]
-		when 'float'; [0,0,0,0,1,1]
+		when    nil   ; [1,1,1,1,1,1]
+		when   'int32'; [0,0,1,0,0,0]
+		when   'int'  ; [1,1,1,1,0,0]
+		when 'float'  ; [0,0,0,0,1,1]
+		when 'float32'; [0,0,0,0,1,0]
+		when 'float64'; [0,0,0,0,0,1]
 		else raise 'BORK BORK BORK' end
 		ks = k.map{|ke| if ke==0 then 0 else cli end}.join(",")
 		Out.print "static GridHandler #{cl}_grid_#{i}_hand = GRIN(#{ks});"



More information about the Gridflow-cvs mailing list