Spaces:
Running
Running
Download backend/libs/three/textures/CompressedTexture.d.ts from k-l-lambda/starry: direct link, hf CLI and curl.
- Browser
- Download file 1.24 kB
-
https://huggingface.co/spaces/k-l-lambda/starry/resolve/main/backend/libs/three/textures/CompressedTexture.d.ts
- Command line
-
hf download hf://spaces/k-l-lambda/starry/backend/libs/three/textures/CompressedTexture.d.ts
-
curl -L -o CompressedTexture.d.ts https://huggingface.co/spaces/k-l-lambda/starry/resolve/main/backend/libs/three/textures/CompressedTexture.d.ts
1.24 kB
| import { Texture } from './Texture'; | |
| import { Mapping, Wrapping, TextureFilter, CompressedPixelFormat, TextureDataType, TextureEncoding } from '../constants'; | |
| export class CompressedTexture extends Texture { | |
| /** | |
| * @param mipmaps | |
| * @param width | |
| * @param height | |
| * @param [format=THREE.RGBAFormat] | |
| * @param [type=THREE.UnsignedByteType] | |
| * @param [mapping=THREE.Texture.DEFAULT_MAPPING] | |
| * @param [wrapS=THREE.ClampToEdgeWrapping] | |
| * @param [wrapT=THREE.ClampToEdgeWrapping] | |
| * @param [magFilter=THREE.LinearFilter] | |
| * @param [minFilter=THREE.LinearMipmapLinearFilter] | |
| * @param [anisotropy=1] | |
| * @param [encoding=THREE.LinearEncoding] | |
| */ | |
| constructor( | |
| mipmaps: ImageData[], | |
| width: number, | |
| height: number, | |
| format?: CompressedPixelFormat, | |
| type?: TextureDataType, | |
| mapping?: Mapping, | |
| wrapS?: Wrapping, | |
| wrapT?: Wrapping, | |
| magFilter?: TextureFilter, | |
| minFilter?: TextureFilter, | |
| anisotropy?: number, | |
| encoding?: TextureEncoding | |
| ); | |
| get image(): { width: number; height: number }; | |
| set image(value: { width: number; height: number }); | |
| mipmaps: ImageData[]; | |
| /** | |
| * @default false | |
| */ | |
| flipY: boolean; | |
| /** | |
| * @default false | |
| */ | |
| generateMipmaps: boolean; | |
| readonly isCompressedTexture: true; | |
| } | |