excalibur
Version:
Excalibur.js is a simple JavaScript game engine with TypeScript bindings for making 2D games in HTML5 Canvas. Our mission is to make web game development as simple as possible.
18 lines (17 loc) • 530 B
TypeScript
import { Color } from '../../Color';
import { ExcaliburGraphicsContextState } from './ExcaliburGraphicsContext';
import { Material } from './material';
export declare class ContextState implements ExcaliburGraphicsContextState {
opacity: number;
z: number;
tint: Color | null | undefined;
material: Material | null | undefined;
}
export declare class StateStack {
private _pool;
current: ExcaliburGraphicsContextState;
private _states;
private _cloneState;
save(): void;
restore(): void;
}