-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #77 from jroblak/typescriptUpdate
Typescript update Former-commit-id: ac23727
- Loading branch information
Showing
51 changed files
with
1,712 additions
and
584 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/// <reference path="../babylon.d.ts" /> | ||
|
||
declare module BABYLON { | ||
class _Animatable { | ||
target: Object; | ||
fromFrame: number; | ||
toFrame: number; | ||
loopAnimation: boolean; | ||
animationStartDate: Date; | ||
speedRatio: number; | ||
onAnimationEnd: Function; | ||
|
||
constructor(target: Object, from: number, to: number, loop: boolean, speedRatio: number, onAnimationEnd: Function); | ||
|
||
animationStarted: boolean; | ||
|
||
_animate(delay: number): boolean; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/// <reference path="../babylon.d.ts" /> | ||
|
||
declare module BABYLON { | ||
class Bone { | ||
name: string; | ||
_skeleton: Skeleton; | ||
_matrix: Matrix; | ||
_baseMatrix: Matrix; | ||
_worldTransform: Matrix; | ||
_absoluteTransform: Matrix; | ||
_invertedAbsoluteTransform: Matrix; | ||
children: Bone[]; | ||
animation: Animation[]; | ||
|
||
constructor(name: string, skeleton: Skeleton, parentBone: Bone, matrix: Matrix); | ||
|
||
getParent(): Bone; | ||
getLocalMatrix: Matrix; | ||
getAbsoluteMatrix: Matrix; | ||
_updateDifferenceMatrix(): void ; | ||
updateMatrix(matrix: Matrix): void; | ||
markAsDirty(): void; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/// <reference path="../babylon.d.ts" /> | ||
|
||
declare module BABYLON { | ||
class Skeleton { | ||
id: number; | ||
name: string; | ||
bones: Bone[]; | ||
_scene: Scene; | ||
_isDirty: boolean; | ||
|
||
constructor(name: string, id: number, scene: Scene); | ||
|
||
getTransformMatrices(): Matrix[]; | ||
prepare(): void; | ||
getAnimatables(): Animation[]; | ||
clone(name: string, id: number): Skeleton; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/// <reference path="../babylon.d.ts" /> | ||
|
||
declare module BABYLON { | ||
class ArcRotateCamera extends Camera { | ||
alpha: number; | ||
beta: number; | ||
radius: number; | ||
target: Vector3; | ||
|
||
_keys: number[]; | ||
keysUp: number[]; | ||
keysDown: number[]; | ||
keysLeft: number[]; | ||
keysRight: number[]; | ||
_viewMatrix: Matrix; | ||
|
||
constructor(name: string, alpha: number, beta: number, radius: number, target: Vector3, scene: Scene); | ||
|
||
inertialAlphaOffset: number; | ||
interialBetaOffset: number; | ||
lowerAlphaLimit: number; | ||
upperAlphaLimit: number; | ||
lowerBetaLimit: number; | ||
upperBetaLimit: number; | ||
lowerRadiusLimit: number; | ||
upperRadiusLimit: number; | ||
setPosition(position: Vector3): void; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/// <reference path="../babylon.d.ts" /> | ||
|
||
declare module BABYLON { | ||
class DeviceOrientationCamera extends FreeCamera { | ||
angularSensibility: number; | ||
moveSensibility: number; | ||
|
||
constructor(name: string, position: Vector3, scene: Scene); | ||
|
||
_offsetX: number; | ||
_offsetY: number; | ||
_orientationGamma: number; | ||
_orientationBeta: number; | ||
_initialOrientationGamma: number; | ||
_initialOrientationBeta: number; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/// <reference path="../babylon.d.ts" /> | ||
|
||
declare module BABYLON { | ||
class FreeCamera extends Camera { | ||
cameraDirection: Vector3; | ||
cameraRotation: Vector2; | ||
rotation: Vector3; | ||
ellipsoid: Vector3; | ||
_keys: number[]; | ||
keysUp: number[]; | ||
keysDown: number[]; | ||
keysLeft: number[]; | ||
keysRight: number[]; | ||
_collider: Collider; | ||
_needsMoveForGravity: boolean; | ||
animations: Animation[]; | ||
|
||
constructor(name: string, position: Vector3, scene: Scene); | ||
|
||
speed: number; | ||
checkCollisions: boolean; | ||
applyGravity: boolean; | ||
|
||
_computeLocalCameraSpeed(): number; | ||
setTarget(target: Vector3): void; | ||
_collideWithWorld(velocity: Vector3): void; | ||
_checkInputs(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/// <reference path="../babylon.d.ts" /> | ||
|
||
declare module BABYLON { | ||
class TouchCamera extends FreeCamera { | ||
_offsetX: number; | ||
_offsetY: number; | ||
_pointerCount: number; | ||
_pointerPressed: number[]; | ||
angularSensibility: number; | ||
moveSensibility: number; | ||
|
||
constructor(name: string, position: Vector3, scene: Scene); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/// <reference path="../babylon.d.ts" /> | ||
|
||
declare module BABYLON { | ||
class CollisionPlane { | ||
normal: Vector3; | ||
origin: Vector3; | ||
equation: number[]; | ||
|
||
constructor(origin: Vector3, normal: Vector3); | ||
|
||
isFrontFactingTo(direction: Vector3, epsilon: number): boolean; | ||
signedDistanceTo(point: Vector3): number; | ||
|
||
static CreateFromPoints(p1: Vector3, p2: Vector3, p3: Vector3): CollisionPlane; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/// <reference path="../../babylon.d.ts" /> | ||
|
||
declare module BABYLON { | ||
class Octree { | ||
blocks: OctreeBlock[]; | ||
_maxBlockCapacity: number; | ||
_selection: Tools.SmartArray; | ||
|
||
constructor(maxBlockCapacity: number); | ||
|
||
update(worldMin: Vector3, worldMax: Vector3, meshes: Mesh[]): void; | ||
addMesh(mesh: Mesh): void; | ||
select(frustrumPlanes: Plane[]): void; | ||
|
||
static _CreateBlocks(worldMin: Vector3, worldMax: Vector3, meshes: Mesh[], maxBlockCapacity: number, target: OctreeBlock): void; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/// <reference path="../../babylon.d.ts" /> | ||
|
||
declare module BABYLON { | ||
class OctreeBlock { | ||
subMeshes: Mesh[]; | ||
meshes: Mesh[]; | ||
_capacity: number; | ||
_minPoint: Vector3; | ||
_maxPoint: Vector3; | ||
_boundingVector: Vector3[]; | ||
|
||
constructor(minPoint: Vector3, maxPoint: Vector3, capacity: number) | ||
|
||
addMesh(mesh: Mesh): void; | ||
addEntries(meshes: Mesh[]): void; | ||
select(frustrumPlanes: Plane[], selection: Tools.SmartArray): void; | ||
} | ||
} |
Oops, something went wrong.