| Server IP : 210.245.233.93 / Your IP : 216.73.216.226 Web Server : Apache/2.2.15 (CentOS) System : Linux webserver2.onesolution.com.hk 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64 User : apache ( 48) PHP Version : 5.3.3 Disable Function : exec, shell_exec, system, passthru, popen, proc_open, pcntl_exec MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/hkosl.com/3dweb/src/loaders/ |
Upload File : |
import { Loader } from './Loader';
import { LoadingManager } from './LoadingManager';
import { Object3D } from './../core/Object3D';
import { Texture } from './../textures/Texture';
import { Material } from './../materials/Material';
import { AnimationClip } from './../animation/AnimationClip';
export class ObjectLoader extends Loader {
constructor( manager?: LoadingManager );
load(
url: string,
onLoad?: <ObjectType extends Object3D>( object: ObjectType ) => void,
onProgress?: ( event: ProgressEvent ) => void,
onError?: ( event: Error | ErrorEvent ) => void
): void;
parse<T extends Object3D>( json: any, onLoad?: ( object: Object3D ) => void ): T;
parseGeometries( json: any ): any[]; // Array of BufferGeometry or Geometry or Geometry2.
parseMaterials( json: any, textures: Texture[] ): Material[]; // Array of Classes that inherits from Matrial.
parseAnimations( json: any ): AnimationClip[];
parseImages(
json: any,
onLoad: () => void
): { [key: string]: HTMLImageElement };
parseTextures( json: any, images: any ): Texture[];
parseObject<T extends Object3D>(
data: any,
geometries: any[],
materials: Material[]
): T;
}