| 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/textures/ |
Upload File : |
import { Vector2 } from './../math/Vector2';
import { EventDispatcher } from './../core/EventDispatcher';
import {
Mapping,
Wrapping,
TextureFilter,
PixelFormat,
PixelFormatGPU,
TextureDataType,
TextureEncoding
} from '../constants';
// Textures /////////////////////////////////////////////////////////////////////
export let TextureIdCount: number;
export class Texture extends EventDispatcher {
constructor(
image?: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement,
mapping?: Mapping,
wrapS?: Wrapping,
wrapT?: Wrapping,
magFilter?: TextureFilter,
minFilter?: TextureFilter,
format?: PixelFormat,
type?: TextureDataType,
anisotropy?: number,
encoding?: TextureEncoding
);
id: number;
uuid: string;
name: string;
sourceFile: string;
image: any; // HTMLImageElement or ImageData or { width: number, height: number } in some children;
mipmaps: ImageData[];
mapping: Mapping;
wrapS: Wrapping;
wrapT: Wrapping;
magFilter: TextureFilter;
minFilter: TextureFilter;
anisotropy: number;
format: PixelFormat;
internalFormat: PixelFormatGPU | null;
type: TextureDataType;
offset: Vector2;
repeat: Vector2;
center: Vector2;
rotation: number;
generateMipmaps: boolean;
premultiplyAlpha: boolean;
flipY: boolean;
unpackAlignment: number;
encoding: TextureEncoding;
version: number;
needsUpdate: boolean;
readonly isTexture: true;
onUpdate: () => void;
static DEFAULT_IMAGE: any;
static DEFAULT_MAPPING: any;
clone(): this;
copy( source: Texture ): this;
toJSON( meta: any ): any;
dispose(): void;
transformUv( uv: Vector2 ): Vector2;
}