Package | away3d.materials |
Class | public class VideoMaterial |
Inheritance | VideoMaterial ![]() ![]() ![]() |
Property | Defined by | ||
---|---|---|---|
![]() | alpha : Number
The alpha of the surface.
| BitmapMaterial | |
![]() | ambient : Number
The strength of the ambient reflection.
| DefaultMaterialBase | |
![]() | ambientColor : uint
The colour of the ambient reflection.
| DefaultMaterialBase | |
![]() | ambientMethod : BasicAmbientMethod
The method to perform diffuse shading.
| DefaultMaterialBase | |
autoPlay : Boolean | VideoMaterial | ||
autoUpdate : Boolean | VideoMaterial | ||
![]() | bitmapData : BitmapData
The BitmapData object to use as the texture.
| BitmapMaterial | |
![]() | blendMode : String
The blend mode to use when drawing this renderable.
| MaterialBase | |
![]() | bothSides : Boolean
Defines whether or not the material should perform backface culling.
| MaterialBase | |
![]() | colorTransform : ColorTransform
The ColorTransform object to transform the colour of the material with.
| DefaultMaterialBase | |
![]() | diffuseMethod : BasicDiffuseMethod
The method to perform diffuse shading.
| DefaultMaterialBase | |
![]() | extra : Object
An object to contain any extra data
| MaterialBase | |
![]() | gloss : Number
The sharpness of the specular highlight.
| DefaultMaterialBase | |
![]() | lights : Array | MaterialBase | |
![]() | materialNamespace : String
The namespace of the material, used by the MaterialLibrary.
| MaterialBase | |
materialSize : int | VideoMaterial | ||
![]() | mipmap : Boolean | DefaultMaterialBase | |
![]() | name : String
The name of the material.
| MaterialBase | |
![]() | normalMap : BitmapData
The tangent space normal map to influence the direction of the surface for each texel.
| DefaultMaterialBase | |
player : IVideoPlayer
[read-only]
| VideoMaterial | ||
![]() | repeat : Boolean
Indicates whether or not any used textures should be tiled.
| MaterialBase | |
![]() | requiresBlending : Boolean | BitmapMaterial | |
![]() | shadowMethod : ShadingMethodBase
The method to perform diffuse shading.
| DefaultMaterialBase | |
![]() | smooth : Boolean
Indicates whether or not any used textures should use smoothing.
| MaterialBase | |
![]() | specular : Number
The overall strength of the specular reflection.
| DefaultMaterialBase | |
![]() | specularColor : uint
The colour of the specular reflection.
| DefaultMaterialBase | |
![]() | specularMap : BitmapData
A specular map that defines the strength of specular reflections for each texel.
| DefaultMaterialBase | |
![]() | specularMethod : BasicSpecularMethod
The method to perform specular shading.
| DefaultMaterialBase | |
![]() | transparent : Boolean
Indicate whether or not the BitmapData contains transparency.
| BitmapMaterial | |
![]() | uniqueId : uint
The unique id assigned to the material by the MaterialLibrary.
| MaterialBase |
Method | Defined by | ||
---|---|---|---|
VideoMaterial
(source:String, materialSize:int = 256, loop:Boolean = true, autoPlay:Boolean = false, player:IVideoPlayer = null) | VideoMaterial | ||
![]() | DefaultMaterialBase | ||
![]() | DefaultMaterialBase | ||
dispose(deep:Boolean):void
| VideoMaterial | ||
![]() |
isBitmapDataValid(bitmapData:BitmapData, id:uint = 0):Boolean
| DefaultMaterialBase | |
![]() | DefaultMaterialBase | ||
![]() |
setNameAndSpace(name:String, materialNameSpace:String):void
Sets the materials name and namespace.
| MaterialBase | |
update():void
Draws the video and updates the bitmap material
If this function is not called the bitmap material will not update!
| VideoMaterial | ||
![]() |
updateTexture():void
Triggers an update of the texture, to be used when the contents of the BitmapData has changed.
| BitmapMaterial | |
validateMaterialSize(size:int):int
[static]
Validates the size of the BitmapMaterial.
| VideoMaterial |
autoPlay | property |
autoPlay:Boolean
[read-write]Implementation
public function get autoPlay():Boolean
public function set autoPlay(value:Boolean):void
autoUpdate | property |
autoUpdate:Boolean
[read-write]Implementation
public function get autoUpdate():Boolean
public function set autoUpdate(value:Boolean):void
materialSize | property |
materialSize:int
[read-write]Implementation
public function get materialSize():int
public function set materialSize(value:int):void
player | property |
VideoMaterial | () | constructor |
public function VideoMaterial(source:String, materialSize:int = 256, loop:Boolean = true, autoPlay:Boolean = false, player:IVideoPlayer = null)
Parameters
source:String |
|
materialSize:int (default = 256 )
|
|
loop:Boolean (default = true )
|
|
autoPlay:Boolean (default = false )
|
|
player:IVideoPlayer (default = null )
|
dispose | () | method |
public override function dispose(deep:Boolean):void
Parameters
deep:Boolean |
update | () | method |
public function update():void
Draws the video and updates the bitmap material If this function is not called the bitmap material will not update!
validateMaterialSize | () | method |
public static function validateMaterialSize(size:int):int
Validates the size of the BitmapMaterial. Supported size are 2, 4, 8, 16, 32, 64, 128, 512, 1024, 2048. Example: 145 would return 128.
Parameterssize:int |
int — int A valid size.
|