| 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 | |
![]() |
destroy():void
| BitmapMaterial | |
![]() | TriangleMaterial | ||
|
drawTriangle(tri:RenderTriangle, graphics:Graphics, renderSessionData:RenderSessionData, altBitmap:BitmapData = null, altUV:Matrix = null):void
| BitmapColorMaterial | ||
![]() |
getObjectList():Dictionary
Returns a list of
DisplayObject3D objects registered with the material. | MaterialObject3D | |
![]() |
isUpdateable():Boolean
| MaterialObject3D | |
![]() |
registerObject(displayObject3D:DisplayObject3D):void
Registers the
DisplayObject3D
| MaterialObject3D | |
![]() |
resetMapping():void
Resets the mapping coordinates.
| BitmapMaterial | |
![]() |
resetUVS():void
resetUVMatrices();
Resets the precalculated uvmatrices, so they can be recalculated
| 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 | |
![]() |
transformUVRT(tri:RenderTriangle):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 | |
| BitmapColorMaterial | () | constructor |
public function BitmapColorMaterial(color:Number = 0xFF00FF, alpha:Number = 1)Parameters
color:Number (default = 0xFF00FF) |
|
alpha:Number (default = 1) |
| drawTriangle | () | method |
public override function drawTriangle(tri:RenderTriangle, graphics:Graphics, renderSessionData:RenderSessionData, altBitmap:BitmapData = null, altUV:Matrix = null):voidParameters
tri:RenderTriangle |
|
graphics:Graphics |
|
renderSessionData:RenderSessionData |
|
altBitmap:BitmapData (default = null) |
|
altUV:Matrix (default = null) |