| Package | sandy.materials.attributes |
| Class | public class MaterialAttributes |
See also
| Property | Defined by | ||
|---|---|---|---|
| attributes : Array
List of attributes.
| MaterialAttributes | ||
| flags : uint [read-only]
Returns flags for attributes.
| MaterialAttributes | ||
| Method | Defined by | ||
|---|---|---|---|
|
MaterialAttributes(... args)
Creates a new LightAttributes object.
| MaterialAttributes | ||
|
Method called before the display list rendering.
| MaterialAttributes | ||
|
Draws all attributes to the graphics object.
| MaterialAttributes | ||
|
Applies attributes to a sprite.
| MaterialAttributes | ||
|
Method called right after the display list rendering.
| MaterialAttributes | ||
|
Allows all attributes to proceed to an initialization to know when the polyon isn't lined to the material.
| MaterialAttributes | ||
|
Remove all initializations (opposite of init method) from all attributes.
| MaterialAttributes | ||
| attributes | property |
public var attributes:ArrayList of attributes.
| flags | property |
flags:uint [read-only]Returns flags for attributes.
Implementation public function get flags():uint
See also
| MaterialAttributes | () | constructor |
public function MaterialAttributes(... args)Creates a new LightAttributes object.
Parameters... args |
| begin | () | method |
public function begin(p_oScene:Scene3D):voidMethod called before the display list rendering. This is the common place for this attribute to precompute things.
Parametersp_oScene:Scene3D — The scene.
|
See also
| draw | () | method |
public function draw(p_oGraphics:Graphics, p_oPolygon:Polygon, p_oMaterial:Material, p_oScene:Scene3D):voidDraws all attributes to the graphics object.
Parametersp_oGraphics:Graphics — The Graphics object to draw attributes to.
|
|
p_oPolygon:Polygon — The polygon which is going to be drawn.
|
|
p_oMaterial:Material — The refering material.
|
|
p_oScene:Scene3D — The scene.
|
See also
| drawOnSprite | () | method |
public function drawOnSprite(p_oSprite:Sprite2D, p_oMaterial:Material, p_oScene:Scene3D):voidApplies attributes to a sprite.
Parametersp_oSprite:Sprite2D — The Sprite2D object to draw attributes to.
|
|
p_oMaterial:Material — The refering material.
|
|
p_oScene:Scene3D — The scene.
|
See also
| finish | () | method |
public function finish(p_oScene:Scene3D):voidMethod called right after the display list rendering. This is the place to remove and dispose memory if necessary.
Parametersp_oScene:Scene3D — The scene.
|
See also
| init | () | method |
public function init(p_oPolygon:Polygon):voidAllows all attributes to proceed to an initialization to know when the polyon isn't lined to the material.
Parametersp_oPolygon:Polygon — The polygon.
|
See also
| unlink | () | method |
public function unlink(p_oPolygon:Polygon):voidRemove all initializations (opposite of init method) from all attributes.
Parametersp_oPolygon:Polygon — The polygon.
|
See also