Packageaway3d.core.base
Interfacepublic interface IRenderable extends IMaterialOwner
Implementors SegmentSet, SkyBox, Sprite3D, SubMesh

IRenderable provides an interface for objects that can be rendered in the rendering pipeline.



Public Properties
 PropertyDefined By
 Inheritedanimator : IAnimator
[read-only] The animation used by the material to assemble the vertex code.
IMaterialOwner
  castsShadows : Boolean
[read-only] Indicates whether the renderable can cast shadows
IRenderable
  indexData : Vector.<uint>
[read-only] Retrieves the object's indices as a uint array.
IRenderable
  inverseSceneTransform : Matrix3D
[read-only] The inverse scene transform object that transforms from world to model space.
IRenderable
 Inheritedmaterial : MaterialBase
The material with which to render the object.
IMaterialOwner
  modelViewProjection : Matrix3D
[read-only] The model-view-projection (MVP) matrix used to transform from model to homogeneous projection space.
IRenderable
  mouseEnabled : Boolean
[read-only] Indicates whether the IRenderable should trigger mouse events, and hence should be rendered for hit testing.
IRenderable
  normalBufferOffset : int
[read-only]
IRenderable
  numTriangles : uint
[read-only] The amount of triangles that comprise the IRenderable geometry.
IRenderable
  sceneTransform : Matrix3D
[read-only] The transformation matrix that transforms from model to world space.
IRenderable
  secondaryUVBufferOffset : int
[read-only]
IRenderable
  shaderPickingDetails : Boolean
[read-only]
IRenderable
  sourceEntity : Entity
[read-only] The entity that that initially provided the IRenderable to the render pipeline.
IRenderable
  tangentBufferOffset : int
[read-only]
IRenderable
  UVBufferOffset : int
[read-only]
IRenderable
  UVData : Vector.<Number>
[read-only] Retrieves the object's uvs as a Number array.
IRenderable
  uvTransform : Matrix
[read-only]
IRenderable
  vertexBufferOffset : int
[read-only]
IRenderable
  vertexData : Vector.<Number>
[read-only] Retrieves the object's vertices as a Number array.
IRenderable
  zIndex : Number
[read-only] The distance of the IRenderable object to the view, used to sort per object.
IRenderable
Public Methods
 MethodDefined By
  
getCustomBuffer(stage3DProxy:Stage3DProxy):VertexBuffer3D
Retrieves a custom buffer that can contain any per-vertex data
IRenderable
  
getIndexBuffer(stage3DProxy:Stage3DProxy):IndexBuffer3D
Retrieves the VertexBuffer3D object that contains triangle indices.
IRenderable
  
getSecondaryUVBuffer(stage3DProxy:Stage3DProxy):VertexBuffer3D
IRenderable
  
getUVBuffer(stage3DProxy:Stage3DProxy):VertexBuffer3D
Retrieves the VertexBuffer3D object that contains texture coordinates.
IRenderable
  
getVertexBuffer(stage3DProxy:Stage3DProxy):VertexBuffer3D
Retrieves the VertexBuffer3D object that contains vertex positions.
IRenderable
  
getVertexNormalBuffer(stage3DProxy:Stage3DProxy):VertexBuffer3D
Retrieves the VertexBuffer3D object that contains vertex normals.
IRenderable
  
getVertexTangentBuffer(stage3DProxy:Stage3DProxy):VertexBuffer3D
Retrieves the VertexBuffer3D object that contains vertex tangents.
IRenderable
Property Detail
castsShadowsproperty
castsShadows:Boolean  [read-only]

Indicates whether the renderable can cast shadows


Implementation
    public function get castsShadows():Boolean
indexDataproperty 
indexData:Vector.<uint>  [read-only]

Retrieves the object's indices as a uint array.


Implementation
    public function get indexData():Vector.<uint>
inverseSceneTransformproperty 
inverseSceneTransform:Matrix3D  [read-only]

The inverse scene transform object that transforms from world to model space.


Implementation
    public function get inverseSceneTransform():Matrix3D
modelViewProjectionproperty 
modelViewProjection:Matrix3D  [read-only]

The model-view-projection (MVP) matrix used to transform from model to homogeneous projection space.


Implementation
    public function get modelViewProjection():Matrix3D
mouseEnabledproperty 
mouseEnabled:Boolean  [read-only]

Indicates whether the IRenderable should trigger mouse events, and hence should be rendered for hit testing.


Implementation
    public function get mouseEnabled():Boolean
normalBufferOffsetproperty 
normalBufferOffset:int  [read-only]


Implementation
    public function get normalBufferOffset():int
numTrianglesproperty 
numTriangles:uint  [read-only]

The amount of triangles that comprise the IRenderable geometry.


Implementation
    public function get numTriangles():uint
sceneTransformproperty 
sceneTransform:Matrix3D  [read-only]

The transformation matrix that transforms from model to world space.


Implementation
    public function get sceneTransform():Matrix3D
secondaryUVBufferOffsetproperty 
secondaryUVBufferOffset:int  [read-only]


Implementation
    public function get secondaryUVBufferOffset():int
shaderPickingDetailsproperty 
shaderPickingDetails:Boolean  [read-only]


Implementation
    public function get shaderPickingDetails():Boolean
sourceEntityproperty 
sourceEntity:Entity  [read-only]

The entity that that initially provided the IRenderable to the render pipeline.


Implementation
    public function get sourceEntity():Entity
tangentBufferOffsetproperty 
tangentBufferOffset:int  [read-only]


Implementation
    public function get tangentBufferOffset():int
UVBufferOffsetproperty 
UVBufferOffset:int  [read-only]


Implementation
    public function get UVBufferOffset():int
UVDataproperty 
UVData:Vector.<Number>  [read-only]

Retrieves the object's uvs as a Number array.


Implementation
    public function get UVData():Vector.<Number>
uvTransformproperty 
uvTransform:Matrix  [read-only]


Implementation
    public function get uvTransform():Matrix
vertexBufferOffsetproperty 
vertexBufferOffset:int  [read-only]


Implementation
    public function get vertexBufferOffset():int
vertexDataproperty 
vertexData:Vector.<Number>  [read-only]

Retrieves the object's vertices as a Number array.


Implementation
    public function get vertexData():Vector.<Number>
zIndexproperty 
zIndex:Number  [read-only]

The distance of the IRenderable object to the view, used to sort per object.


Implementation
    public function get zIndex():Number
Method Detail
getCustomBuffer()method
public function getCustomBuffer(stage3DProxy:Stage3DProxy):VertexBuffer3D

Retrieves a custom buffer that can contain any per-vertex data

Parameters

stage3DProxy:Stage3DProxy

Returns
VertexBuffer3D — The VertexBuffer3D object containing the data?
getIndexBuffer()method 
public function getIndexBuffer(stage3DProxy:Stage3DProxy):IndexBuffer3D

Retrieves the VertexBuffer3D object that contains triangle indices.

Parameters

stage3DProxy:Stage3DProxy — The Context3D for which we request the buffer

Returns
IndexBuffer3D — The VertexBuffer3D object that contains triangle indices.
getSecondaryUVBuffer()method 
public function getSecondaryUVBuffer(stage3DProxy:Stage3DProxy):VertexBuffer3D

Parameters

stage3DProxy:Stage3DProxy

Returns
VertexBuffer3D
getUVBuffer()method 
public function getUVBuffer(stage3DProxy:Stage3DProxy):VertexBuffer3D

Retrieves the VertexBuffer3D object that contains texture coordinates.

Parameters

stage3DProxy:Stage3DProxy — The Context3D for which we request the buffer

Returns
VertexBuffer3D — The VertexBuffer3D object that contains texture coordinates.
getVertexBuffer()method 
public function getVertexBuffer(stage3DProxy:Stage3DProxy):VertexBuffer3D

Retrieves the VertexBuffer3D object that contains vertex positions.

Parameters

stage3DProxy:Stage3DProxy — The Context3D for which we request the buffer

Returns
VertexBuffer3D — The VertexBuffer3D object that contains vertex positions.
getVertexNormalBuffer()method 
public function getVertexNormalBuffer(stage3DProxy:Stage3DProxy):VertexBuffer3D

Retrieves the VertexBuffer3D object that contains vertex normals.

Parameters

stage3DProxy:Stage3DProxy — The Context3D for which we request the buffer

Returns
VertexBuffer3D — The VertexBuffer3D object that contains vertex normals.
getVertexTangentBuffer()method 
public function getVertexTangentBuffer(stage3DProxy:Stage3DProxy):VertexBuffer3D

Retrieves the VertexBuffer3D object that contains vertex tangents.

Parameters

stage3DProxy:Stage3DProxy — The Context3D for which we request the buffer

Returns
VertexBuffer3D — The VertexBuffer3D object that contains vertex tangents.