| Package | sandy.materials.attributes |
| Class | public class AAttributes |
| Implements | IAttributes |
| Subclasses | CylinderEnvMap, LineAttributes, MediumAttributes, OutlineAttributes |
This purpose of this class is to save some code. Hooks are still available using "override" keyword.
| Property | Defined by | ||
|---|---|---|---|
| flags : uint [read-only]
Returns the specific flags of this attribute.
| AAttributes | ||
| Method | Defined by | ||
|---|---|---|---|
|
Method called before the display list rendering.
| AAttributes | ||
|
Draws attribute to the graphics object.
| AAttributes | ||
|
Applies attribute to a sprite.
| AAttributes | ||
|
Method called right after the display list rendering.
| AAttributes | ||
|
Allows to proceed to an initialization to know when the polyon isn't lined to the material.
| AAttributes | ||
|
Remove all the initialization (opposite of init).
| AAttributes | ||
| flags | property |
flags:uint [read-only]Returns the specific flags of this attribute.
Implementation public function get flags():uint
See also
| 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 attribute 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 attribute 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 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 the initialization (opposite of init).
Parametersp_oPolygon:Polygon — The polygon.
|
See also