Package | org.papervision3d.materials |
Class | public class ColorMaterial |
Inheritance | ColorMaterial TriangleMaterial MaterialObject3D flash.events.EventDispatcher |
Implements | ITriangleDrawer |
Method | Defined by | ||
---|---|---|---|
ColorMaterial(color:Number = 0xFF00FF, alpha:Number = 1, interactive:Boolean = false)
The ColorMaterial class creates a solid color material.
| ColorMaterial | ||
Creates a copy of the material.
| MaterialObject3D | ||
copy(material:MaterialObject3D):void
Copies the properties of a material.
| MaterialObject3D | ||
drawTriangle(face3D:Triangle3D, graphics:Graphics, renderSessionData:RenderSessionData, altBitmap:BitmapData = null, altUV:Matrix = null):void
drawTriangle
| ColorMaterial | ||
registerObject(displayObject3D:DisplayObject3D):void
| MaterialObject3D | ||
toString():String
Returns a string value representing the material properties in the specified ColorMaterial object.
| ColorMaterial | ||
unregisterObject(displayObject3D:DisplayObject3D):void
| MaterialObject3D | ||
updateBitmap():void
Updates the BitmapData bitmap from the given texture.
| MaterialObject3D |
ColorMaterial | () | constructor |
public function ColorMaterial(color:Number = 0xFF00FF, alpha:Number = 1, interactive:Boolean = false)
The ColorMaterial class creates a solid color material.
Parameterscolor:Number (default = 0xFF00FF ) — A BitmapData object.
|
|
alpha:Number (default = 1 ) — [optional] - An object that contains additional properties with which to populate the newly created material.
|
|
interactive:Boolean (default = false )
|
drawTriangle | () | method |
public override function drawTriangle(face3D:Triangle3D, graphics:Graphics, renderSessionData:RenderSessionData, altBitmap:BitmapData = null, altUV:Matrix = null):void
drawTriangle
Parametersface3D:Triangle3D |
|
graphics:Graphics |
|
renderSessionData:RenderSessionData |
|
altBitmap:BitmapData (default = null )
|
|
altUV:Matrix (default = null )
|
toString | () | method |
public override function toString():String
Returns a string value representing the material properties in the specified ColorMaterial object.
ReturnsString — A string.
|