laya-coreui-es
Version:
laya核心库、ui库es版本,剔除了媒体、TTF等功能。基于 LayaAir-release_2.12.0 修改
62 lines (61 loc) • 1.45 kB
TypeScript
import { ColorFilter } from "../../filters/ColorFilter";
import { Matrix } from "../../maths/Matrix";
import { Context } from "../../resource/Context";
import { Texture } from "../../resource/Texture";
/**
* 绘制三角形命令
*/
export declare class DrawTrianglesCmd {
static ID: string;
/**
* 纹理。
*/
texture: Texture | null;
/**
* X轴偏移量。
*/
x: number;
/**
* Y轴偏移量。
*/
y: number;
/**
* 顶点数组。
*/
vertices: Float32Array;
/**
* UV数据。
*/
uvs: Float32Array;
/**
* 顶点索引。
*/
indices: Uint16Array;
/**
* 缩放矩阵。
*/
matrix: Matrix | null;
/**
* alpha
*/
alpha: number;
/**
* blend模式
*/
blendMode: string | null;
/**
* 颜色变换
*/
color: ColorFilter;
colorNum: number | null;
/**@private */
static create(texture: Texture, x: number, y: number, vertices: Float32Array, uvs: Float32Array, indices: Uint16Array, matrix: Matrix | null, alpha: number, color: string | null, blendMode: string | null, colorNum: number | null): DrawTrianglesCmd;
/**
* 回收到对象池
*/
recover(): void;
/**@private */
run(context: Context, gx: number, gy: number): void;
/**@private */
get cmdID(): string;
}