Package | org.papervision3d.materials |
Class | public class BitmapColorMaterial |
Inheritance | BitmapColorMaterial BitmapMaterial TriangleMaterial MaterialObject3D flash.events.EventDispatcher |
Implements | ITriangleDrawer |
Method | Defined by | ||
---|---|---|---|
BitmapColorMaterial(color:Number = 0xFF00FF, alpha:Number = 1)
| BitmapColorMaterial | ||
Creates a copy of the material.
| BitmapMaterial | ||
copy(material:MaterialObject3D):void
Copies the properties of a material.
| BitmapMaterial | ||
drawTriangle(face3D:Triangle3D, graphics:Graphics, renderSessionData:RenderSessionData, altBitmap:BitmapData = null, altUV:Matrix = null):void
| BitmapColorMaterial | ||
registerObject(displayObject3D:DisplayObject3D):void
| MaterialObject3D | ||
renderRec(graphics:Graphics, ta:Number, tb:Number, tc:Number, td:Number, tx:Number, ty:Number, ax:Number, ay:Number, az:Number, bx:Number, by:Number, bz:Number, cx:Number, cy:Number, cz:Number, index:Number, renderSessionData:RenderSessionData, bitmap:BitmapData):void
| BitmapMaterial | ||
renderTriangleBitmap(graphics:Graphics, a:Number, b:Number, c:Number, d:Number, tx:Number, ty:Number, v0x:Number, v0y:Number, v1x:Number, v1y:Number, v2x:Number, v2y:Number, smooth:Boolean, repeat:Boolean, bitmapData:BitmapData):void
| BitmapMaterial | ||
resetMapping():void
Resets the mapping coordinates.
| BitmapMaterial | ||
toString():String
Returns a string value representing the material properties in the specified BitmapMaterial object.
| BitmapMaterial | ||
transformUV(face3D:Triangle3D):Matrix
Applies the updated UV texture mapping values to the triangle.
| BitmapMaterial | ||
unregisterObject(displayObject3D:DisplayObject3D):void
| MaterialObject3D | ||
updateBitmap():void
Updates the BitmapData bitmap from the given texture.
| MaterialObject3D |
Method | Defined by | ||
---|---|---|---|
correctBitmap(bitmap:BitmapData):BitmapData
| BitmapMaterial | ||
createBitmap(asset:BitmapData):BitmapData
| BitmapMaterial | ||
destroy():void
| BitmapColorMaterial | ||
extendBitmapEdges(bmp:BitmapData, originalWidth:Number, originalHeight:Number):void
| BitmapMaterial |
BitmapColorMaterial | () | constructor |
public function BitmapColorMaterial(color:Number = 0xFF00FF, alpha:Number = 1)
Parameters
color:Number (default = 0xFF00FF )
|
|
alpha:Number (default = 1 )
|
destroy | () | method |
protected override function destroy():void
drawTriangle | () | method |
public override function drawTriangle(face3D:Triangle3D, graphics:Graphics, renderSessionData:RenderSessionData, altBitmap:BitmapData = null, altUV:Matrix = null):void
Parameters
face3D:Triangle3D |
|
graphics:Graphics |
|
renderSessionData:RenderSessionData |
|
altBitmap:BitmapData (default = null )
|
|
altUV:Matrix (default = null )
|