[Gridflow-cvs] [svn] commit: r4658 - /trunk/src/gem.cxx

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Sun Nov 1 20:37:51 EST 2009


Author: matju
Date: Sun Nov  1 20:37:50 2009
New Revision: 4658

Log:
[#from_pix]: stop using helper

Modified:
    trunk/src/gem.cxx

Modified: trunk/src/gem.cxx
==============================================================================
--- trunk/src/gem.cxx (original)
+++ trunk/src/gem.cxx Sun Nov  1 20:37:50 2009
@@ -124,10 +124,6 @@
 		uint32 mask[4] = {0x0000ff,0x00ff00,0xff0000,0x000000};
 		bit_packing = new BitPacking(is_le(),4,4,mask);
 		yflip = false;
-		bself->gemself = (GemPixObj *)this;
-		helper = new GridFromPixHelper;
-		helper->boss = this;
-		bself->gemself = helper;
 		cast = int32_e;
 	}
 	virtual ~GridFromPix () {}
@@ -160,13 +156,8 @@
 	}
 };
 \def 0 gem_state (void *cache, void *state) {render((GemState *)state);}
-
+\end class {install("#from_pix",2,1); add_creator("#import_pix");}
 void GridFromPixHelper::obj_setupCallback(t_class *) {}
-
-\end class {
-	install("#from_pix",2,1);
-	add_creator("#import_pix");
-}
 void GridFromPixHelper::render(GemState *state) {boss->render(state);}
 
 //------------------------------------------------------------------------



More information about the Gridflow-cvs mailing list