home *** CD-ROM | disk | FTP | other *** search
/ Cricao de Sites - 650 Layouts Prontos / WebMasters.iso / Templates / Flash / flashmo_101_3d_carousel / org / papervision3d / materials / InteractiveBitmapWireframeMaterial.as < prev    next >
Text File  |  2007-07-19  |  899b  |  26 lines

  1. package org.papervision3d.materials
  2. {
  3.     import org.papervision3d.objects.DisplayObject3D;
  4.     import org.papervision3d.core.geom.Face3D;
  5.     import flash.display.Graphics;
  6.     import org.papervision3d.core.geom.Vertex2D;
  7.     import flash.geom.Matrix;
  8.     
  9.     public class InteractiveBitmapWireframeMaterial extends BitmapWireframeMaterial
  10.     {
  11.         public function InteractiveBitmapWireframeMaterial(color:Number=0xFF00FF, alpha:Number=1)
  12.         {
  13.             super(color, alpha);
  14.         }
  15.         
  16.         /**
  17.          *  drawFace3D
  18.          */
  19.         override public function drawFace3D(instance:DisplayObject3D, face3D:Face3D, graphics:Graphics, v0:Vertex2D, v1:Vertex2D, v2:Vertex2D):int
  20.         {
  21.             var result:int = super.drawFace3D(instance, face3D, graphics, v0, v1,v2);
  22.             if(instance.interactiveSceneManager != null && result) instance.interactiveSceneManager.drawFace(instance,v0.x, v1.x, v2.x, v0.y, v1.y, v2.y);
  23.             return result;
  24.         }
  25.     }
  26. }