Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2,540 changes: 1,934 additions & 606 deletions build/awayjs.next.d.ts

Large diffs are not rendered by default.

12,133 changes: 8,106 additions & 4,027 deletions build/awayjs.next.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/awayjs.next.js.map

Large diffs are not rendered by default.

30 changes: 16 additions & 14 deletions build/awayjs.next.min.js

Large diffs are not rendered by default.

68 changes: 46 additions & 22 deletions src/away/_definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
///<reference path="events/CameraEvent.ts" />
///<reference path="events/DisplayObjectEvent.ts" />
///<reference path="events/EventDispatcher.ts" />
///<reference path="events/GeometryEvent.ts" />
///<reference path="events/HTTPStatusEvent.ts" />
///<reference path="events/IEventDispatcher.ts" />
///<reference path="events/IOErrorEvent.ts" />
Expand All @@ -40,6 +41,7 @@
///<reference path="events/RendererEvent.ts" />
///<reference path="events/SceneEvent.ts"/>
///<reference path="events/StageGLEvent.ts"/>
///<reference path="events/SubGeometryEvent.ts"/>
///<reference path="events/TimerEvent.ts" />

///<reference path="utils/ByteArrayBase.ts"/>
Expand Down Expand Up @@ -77,27 +79,62 @@
///<reference path="core/library/AssetLibraryBundle.ts"/>
///<reference path="core/library/AssetLibrary.ts" />

///<reference path="core/gl/ContextGLClearMask.ts"/>
///<reference path="core/gl/VertexBuffer.ts"/>
///<reference path="core/gl/VertexData.ts" />
///<reference path="core/gl/VertexDataPool.ts" />
///<reference path="core/gl/IndexBuffer.ts"/>
///<reference path="core/gl/IndexData.ts" />
///<reference path="core/gl/IndexDataPool.ts" />
///<reference path="core/gl/Program.ts"/>
///<reference path="core/gl/SamplerState.ts"/>
///<reference path="core/gl/ContextGLTextureFormat.ts"/>
///<reference path="core/gl/TextureBase.ts"/>
///<reference path="core/gl/Texture.ts" />
///<reference path="core/gl/CubeTexture.ts" />
///<reference path="core/gl/ContextGLTriangleFace.ts"/>
///<reference path="core/gl/ContextGLVertexBufferFormat.ts"/>
///<reference path="core/gl/ContextGLProgramType.ts"/>
///<reference path="core/gl/ContextGLBlendFactor.ts"/>
///<reference path="core/gl/ContextGLCompareMode.ts"/>
///<reference path="core/gl/ContextGLMipFilter.ts"/>
///<reference path="core/gl/ContextGLProfile.ts"/>
///<reference path="core/gl/ContextGLStencilAction.ts"/>
///<reference path="core/gl/ContextGLTextureFilter.ts"/>
///<reference path="core/gl/ContextGLWrapMode.ts"/>
///<reference path="core/gl/ContextGL.ts" />
///<reference path="core/gl/AGLSLContextGL.ts" />

///<reference path="core/base/BlendMode.ts"/>
///<reference path="core/base/AlignmentMode.ts"/>
///<reference path="core/base/OrientationMode.ts"/>
///<reference path="core/base/BitmapData.ts"/>
///<reference path="core/base/BitmapDataChannel.ts"/>
///<reference path="core/base/CapsStyle"/>
///<reference path="core/base/DisplayObject.ts" />
///<reference path="core/base/Geometry.ts" />
///<reference path="core/base/GradientType.ts" />
///<reference path="core/base/Graphics.ts" />
///<reference path="core/base/GraphicsPathWinding.ts" />
///<reference path="core/base/IBitmapDrawable.ts" />
///<reference path="core/base/IGraphicsData.ts" />
///<reference path="core/base/IMaterialOwner.ts" />
///<reference path="core/base/InterpolationMethod.ts" />
///<reference path="core/base/ISubMesh.ts" />
///<reference path="core/base/ISubMeshClass.ts" />
///<reference path="core/base/SubGeometryBase.ts" />
///<reference path="core/base/SubMeshBase.ts" />
///<reference path="core/base/JointStyle.ts" />
///<reference path="core/base/LineScaleMode.ts" />
///<reference path="core/base/LineSubGeometry.ts" />
///<reference path="core/base/LineSubMesh.ts" />
///<reference path="core/base/LoaderInfo.ts" />
///<reference path="core/base/PixelSnapping.ts" />
///<reference path="core/base/SpreadMethod.ts" />
///<reference path="core/base/StageGL.ts" />
///<reference path="core/base/TriangleCulling.ts" />
///<reference path="core/base/TriangleSubGeometry.ts" />
///<reference path="core/base/TriangleSubMesh.ts" />

///<reference path="core/pool/EntityListItem.ts"/>
///<reference path="core/pool/EntityListItemPool.ts"/>
Expand All @@ -106,6 +143,7 @@
///<reference path="core/pool/RenderablePool.ts"/>
///<reference path="core/pool/CSSRenderableBase.ts"/>
///<reference path="core/pool/CSSBillboardRenderable.ts"/>
///<reference path="core/pool/CSSLineSegmentRenderable.ts"/>

///<reference path="core/traverse/ICollector.ts" />
///<reference path="core/traverse/CollectorBase.ts" />
Expand All @@ -117,6 +155,7 @@
///<reference path="core/partition/Partition.ts" />
///<reference path="core/partition/EntityNode.ts" />
///<reference path="core/partition/CameraNode.ts" />
///<reference path="core/partition/SkyboxNode.ts" />

///<reference path="core/pick/IPickingCollider.ts" />
///<reference path="core/pick/IPicker.ts"/>
Expand All @@ -130,28 +169,6 @@
///<reference path="core/sort/IEntitySorter.ts"/>
///<reference path="core/sort/RenderableMergeSort.ts"/>

///<reference path="core/gl/ContextGLClearMask.ts"/>
///<reference path="core/gl/VertexBuffer.ts"/>
///<reference path="core/gl/IndexBuffer.ts"/>
///<reference path="core/gl/Program.ts"/>
///<reference path="core/gl/SamplerState.ts"/>
///<reference path="core/gl/ContextGLTextureFormat.ts"/>
///<reference path="core/gl/TextureBase.ts"/>
///<reference path="core/gl/Texture.ts" />
///<reference path="core/gl/CubeTexture.ts" />
///<reference path="core/gl/ContextGLTriangleFace.ts"/>
///<reference path="core/gl/ContextGLVertexBufferFormat.ts"/>
///<reference path="core/gl/ContextGLProgramType.ts"/>
///<reference path="core/gl/ContextGLBlendFactor.ts"/>
///<reference path="core/gl/ContextGLCompareMode.ts"/>
///<reference path="core/gl/ContextGLMipFilter.ts"/>
///<reference path="core/gl/ContextGLProfile.ts"/>
///<reference path="core/gl/ContextGLStencilAction.ts"/>
///<reference path="core/gl/ContextGLTextureFilter.ts"/>
///<reference path="core/gl/ContextGLWrapMode.ts"/>
///<reference path="core/gl/ContextGL.ts" />
///<reference path="core/gl/AGLSLContextGL.ts" />

///<reference path="core/geom/Box.ts"/>
///<reference path="core/geom/ColorTransform.ts"/>
///<reference path="core/geom/Matrix.ts" />
Expand Down Expand Up @@ -196,7 +213,10 @@
///<reference path="entities/IEntity.ts" />
///<reference path="entities/Billboard.ts" />
///<reference path="entities/Camera.ts" />
///<reference path="entities/LineSegment.ts" />
///<reference path="entities/Mesh.ts" />
///<reference path="entities/Shape.ts" />
///<reference path="entities/Skybox.ts" />
///<reference path="entities/TextField.ts" />

///<reference path="projections/CoordinateSystem.ts" />
Expand Down Expand Up @@ -231,6 +251,10 @@
///<reference path="materials/IMaterial.ts"/>
///<reference path="materials/CSSMaterialBase.ts"/>

///<reference path="prefabs/PrefabBase.ts"/>

///<reference path="animators/nodes/AnimationNodeBase.ts"/>
///<reference path="animators/IAnimationSet.ts"/>
///<reference path="animators/IAnimator.ts"/>

///<reference path="textures/TextureProxyBase.ts" />
Expand Down
50 changes: 50 additions & 0 deletions src/away/animators/IAnimationSet.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
///<reference path="../_definitions.ts"/>

module away.animators
{

/**
* Provides an interface for data set classes that hold animation data for use in animator classes.
*
* @see away3d.animators.AnimatorBase
*/
export interface IAnimationSet
{
/**
* Check to determine whether a state is registered in the animation set under the given name.
*
* @param stateName The name of the animation state object to be checked.
*/
hasAnimation(name:string):boolean;

/**
* Retrieves the animation state object registered in the animation data set under the given name.
*
* @param stateName The name of the animation state object to be retrieved.
*/
getAnimation(name:string):AnimationNodeBase;

/**
* Indicates whether the properties of the animation data contained within the set combined with
* the vertex registers aslready in use on shading materials allows the animation data to utilise
* GPU calls.
*/
usesCPU:boolean; // GET

/**
* Called by the material to reset the GPU indicator before testing whether register space in the shader
* is available for running GPU-based animation code.
*
* @private
*/
resetGPUCompatibility();

/**
* Called by the animator to void the GPU indicator when register space in the shader
* is no longer available for running GPU-based animation code.
*
* @private
*/
cancelGPUCompatibility();
}
}
14 changes: 13 additions & 1 deletion src/away/animators/IAnimator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,13 @@ module away.animators
*
* @see away.animators.IAnimationSet
*/
export interface IAnimator
export interface IAnimator extends away.library.IAsset
{
/**
*
*/
animationSet:away.animators.IAnimationSet;

/**
*
*/
Expand All @@ -32,5 +37,12 @@ module away.animators
* @private
*/
removeOwner(mesh:away.entities.IEntity);

/**
* //TODO
*
* @param sourceSubGeometry
*/
getRenderableSubGeometry(renderable:away.pool.IRenderable, sourceSubGeometry:away.base.SubGeometryBase):away.base.SubGeometryBase;
}
}
41 changes: 41 additions & 0 deletions src/away/animators/nodes/AnimationNodeBase.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
///<reference path="../../_definitions.ts"/>

module away.animators
{

/**
* Provides an abstract base class for nodes in an animation blend tree.
*/
export class AnimationNodeBase extends away.library.NamedAssetBase implements away.library.IAsset
{
public _pStateClass:any;

public get stateClass():any
{
return this._pStateClass;
}

/**
* Creates a new <code>AnimationNodeBase</code> object.
*/
constructor()
{
super();
}

/**
* @inheritDoc
*/
public dispose()
{
}

/**
* @inheritDoc
*/
public get assetType():string
{
return away.library.AssetType.ANIMATION_NODE;
}
}
}
Loading