laya-coreui-es
Version:
laya核心库、ui库es版本,剔除了媒体、TTF等功能。基于 LayaAir-release_2.12.0 修改
98 lines (97 loc) • 3.54 kB
TypeScript
import { Bitmap } from "./Bitmap";
import { FilterMode } from "./FilterMode";
import { WarpMode } from "./WrapMode";
/**
* <code>BaseTexture</code> 纹理的父类,抽象类,不允许实例。
*/
export declare class BaseTexture extends Bitmap {
/**
* 是否使用mipLevel
*/
get mipmap(): boolean;
/**
* 纹理格式
*/
get format(): number;
/**
* 纹理横向循环模式。
*/
get wrapModeU(): number;
set wrapModeU(value: number);
/**
* 纹理纵向循环模式。
*/
get wrapModeV(): number;
set wrapModeV(value: number);
/**
* 缩小过滤器
*/
get filterMode(): FilterMode;
set filterMode(value: FilterMode);
/**
* 各向异性等级
*/
get anisoLevel(): number;
set anisoLevel(value: number);
/**
* 获取mipmap数量。
*/
get mipmapCount(): number;
get defaulteTexture(): BaseTexture;
/**
* 创建一个 <code>BaseTexture</code> 实例。
*/
constructor(format: number, mipMap: boolean);
/**
* 处理资源
* @inheritDoc
* @override
*/
protected _disposeResource(): void;
/**
* 通过基础数据生成mipMap。
*/
generateMipmap(): void;
/** @deprecated use TextureFormat.FORMAT_R8G8B8 instead.*/
static FORMAT_R8G8B8: number;
/** @deprecated use TextureFormat.FORMAT_R8G8B8A8 instead.*/
static FORMAT_R8G8B8A8: number;
/** @deprecated use TextureFormat.FORMAT_ALPHA8 instead.*/
static FORMAT_ALPHA8: number;
/** @deprecated use TextureFormat.FORMAT_DXT1 instead.*/
static FORMAT_DXT1: number;
/** @deprecated use TextureFormat.FORMAT_DXT5 instead.*/
static FORMAT_DXT5: number;
/** @deprecated use TextureFormat.FORMAT_ETC1RGB instead.*/
static FORMAT_ETC1RGB: number;
/** @deprecated use TextureFormat.FORMAT_PVRTCRGB_2BPPV instead.*/
static FORMAT_PVRTCRGB_2BPPV: number;
/** @deprecated use TextureFormat.FORMAT_PVRTCRGBA_2BPPV instead.*/
static FORMAT_PVRTCRGBA_2BPPV: number;
/** @deprecated use TextureFormat.FORMAT_PVRTCRGB_4BPPV instead.*/
static FORMAT_PVRTCRGB_4BPPV: number;
/** @deprecated use TextureFormat.FORMAT_PVRTCRGBA_4BPPV instead.*/
static FORMAT_PVRTCRGBA_4BPPV: number;
/** @deprecated use RenderTextureFormat.R16G16B16A16 instead.*/
static RENDERTEXTURE_FORMAT_RGBA_HALF_FLOAT: number;
/** @deprecated use TextureFormat.R32G32B32A32 instead.*/
static FORMAT_R32G32B32A32: number;
/** @deprecated use RenderTextureDepthFormat.DEPTH_16 instead.*/
static FORMAT_DEPTH_16: number;
/** @deprecated use RenderTextureDepthFormat.STENCIL_8 instead.*/
static FORMAT_STENCIL_8: number;
/** @deprecated use RenderTextureDepthFormat.DEPTHSTENCIL_16_8 instead.*/
static FORMAT_DEPTHSTENCIL_16_8: number;
/** @deprecated use RenderTextureDepthFormat.DEPTHSTENCIL_NONE instead.*/
static FORMAT_DEPTHSTENCIL_NONE: number;
/** @deprecated use FilterMode.Point instead.*/
static FILTERMODE_POINT: number;
/** @deprecated use FilterMode.Bilinear instead.*/
static FILTERMODE_BILINEAR: number;
/** @deprecated use FilterMode.Trilinear instead.*/
static FILTERMODE_TRILINEAR: number;
/** @deprecated use WarpMode.Repeat instead.*/
static WARPMODE_REPEAT: number;
/** @deprecated use WarpMode.Clamp instead.*/
static WARPMODE_CLAMP: number;
}