@awayjs/graphics
Version:
AwayJS graphics classes
23 lines • 901 B
TypeScript
import { GradientFillStyle } from '../draw/fills/GradientFillStyle';
import { ITextureAtlasEntry } from './TextureAtlas';
import { IMaterial } from '@awayjs/renderer';
import { BitmapImage2D } from '@awayjs/stage';
type ISpecialMaterial = IMaterial & {
alphaBlending: boolean;
useColorTransform: boolean;
ambientMethod?: any;
};
type IMaterialCtr = {
new (...args: any[]): ISpecialMaterial;
};
export declare class MaterialManager {
private static _colorMaterials;
private static _textureMaterials;
private static _useTextureAtlasForColors;
static materialClass: IMaterialCtr;
static getMaterialForColor(color: number, alpha?: number): ITextureAtlasEntry;
static getMaterialForGradient(gradient: GradientFillStyle): ITextureAtlasEntry;
static getMaterialForBitmap(bitmap: BitmapImage2D): IMaterial;
}
export {};
//# sourceMappingURL=MaterialManager.d.ts.map