@awayjs/graphics
Version:
AwayJS graphics classes
25 lines • 952 B
TypeScript
import { GradientFillStyle } from '../draw/fills/GradientFillStyle';
import { SolidFillStyle } from '../draw/fills/SolidFillStyle';
import { IMaterial } from '@awayjs/renderer';
type ISpecialMaterial = IMaterial & {
alphaBlending: boolean;
useColorTransform: boolean;
ambientMethod?: any;
};
type IMaterialCtr = {
new (...args: any[]): ISpecialMaterial;
};
export declare class MaterialManager {
private static _bitmapMaterial;
private static _bitmapMaterialTransform;
private static _colorMaterial;
private static _colorMaterials;
private static _textureMaterials;
private static _useTextureAtlasForColors;
static materialClass: IMaterialCtr;
static getMaterialForColor(style: SolidFillStyle): IMaterial;
static getMaterialForGradient(gradient: GradientFillStyle): IMaterial;
static getMaterialForBitmap(transform?: boolean): IMaterial;
}
export {};
//# sourceMappingURL=MaterialManager.d.ts.map