Packagesandy.materials.attributes
Classpublic class AAttributes
ImplementsIAttributes
SubclassesCylinderEnvMap, LineAttributes, MediumAttributes, OutlineAttributes

ABSTRACT CLASS - super class for attributes that do not need to implement all manager hooks.

This purpose of this class is to save some code. Hooks are still available using "override" keyword.



Public Properties
 PropertyDefined by
  flags : uint
[read-only] Returns the specific flags of this attribute.
AAttributes
Public Methods
 MethodDefined by
  
begin(p_oScene:Scene3D):void
Method called before the display list rendering.
AAttributes
  
draw(p_oGraphics:Graphics, p_oPolygon:Polygon, p_oMaterial:Material, p_oScene:Scene3D):void
Draws attribute to the graphics object.
AAttributes
  
drawOnSprite(p_oSprite:Sprite2D, p_oMaterial:Material, p_oScene:Scene3D):void
Applies attribute to a sprite.
AAttributes
  
finish(p_oScene:Scene3D):void
Method called right after the display list rendering.
AAttributes
  
init(p_oPolygon:Polygon):void
Allows to proceed to an initialization to know when the polyon isn't lined to the material.
AAttributes
  
unlink(p_oPolygon:Polygon):void
Remove all the initialization (opposite of init).
AAttributes
Property detail
flagsproperty
flags:uint  [read-only]

Returns the specific flags of this attribute.

Implementation
    public function get flags():uint

See also

Method detail
begin()method
public function begin(p_oScene:Scene3D):void

Method called before the display list rendering. This is the common place for this attribute to precompute things.

Parameters
p_oScene:Scene3D — The scene.

See also

draw()method 
public function draw(p_oGraphics:Graphics, p_oPolygon:Polygon, p_oMaterial:Material, p_oScene:Scene3D):void

Draws attribute to the graphics object.

Parameters
p_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):void

Applies attribute to a sprite.

Parameters
p_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):void

Method called right after the display list rendering. This is the place to remove and dispose memory if necessary.

Parameters
p_oScene:Scene3D — The scene.

See also

init()method 
public function init(p_oPolygon:Polygon):void

Allows to proceed to an initialization to know when the polyon isn't lined to the material.

Parameters
p_oPolygon:Polygon — The polygon.

See also

unlink()method 
public function unlink(p_oPolygon:Polygon):void

Remove all the initialization (opposite of init).

Parameters
p_oPolygon:Polygon — The polygon.

See also