babylon.sceneLoader.d.ts 1.4 KB

123456789101112131415161718192021
  1. /// <reference path="../babylon.d.ts" />
  2. declare module BABYLON {
  3. function loadCubeTexture(rootUrl: string, parsedTexture: JSON, scene: Scene): CubeTexture;
  4. function loadTexture(rootUrl: string, parsedTexture: JSON, scene: Scene): Texture;
  5. function parseSkeleton(parsedSkeleton: JSON, scene: Scene): Skeleton;
  6. function parseMaterial(parsedMaterial: JSON, scene: Scene, rootUrl: string): Material;
  7. function parseMaterialById(id: number, parsedData: JSON, scene: Scene, rootUrl: string): Material;
  8. function parseMultiMaterial(parsedMultiMaterial: JSON, scene: Scene): MultiMaterial;
  9. function parseParticleSystem(parsedParticleSystem: JSON, scene: Scene, rootUrl: string): ParticleSystem;
  10. function parseShadowGenerator(parsedShadowGenerator: JSON, scene: Scene): ShadowGenerator;
  11. function parseAnimation(parsedAnimation: JSON): Animation;
  12. function parseLight(parsedLight: JSON, scene: Scene): Light;
  13. function parseMesh(parsedMesh: JSON, scene: Scene, rootUrl: string): Mesh;
  14. function isDescendantOf(mesh: Mesh, name: string, hierarchyIds: number[]): boolean;
  15. class SceneLoader {
  16. _ImportGeometry(parsedGeometry, mesh): void;
  17. ImportMesh(meshName: string, rootUrl: string, sceneFilename: string, scene: Scene, then: Function): void;
  18. Load(rootUrl: string, sceneFilename: string, engine: Engine, then: Function, progressCallback: Function): void;
  19. }
  20. }