/** * An object with all scissor state parameters * * @public */ export interface IScissorState { enable: boolean; x: number; y: number; width: number; height: number; } /** * Represents a sub set of {@link IScissorState} * * @public */ export declare type ScissorStateParams = Partial; /** * @public */ export declare class ScissorState implements IScissorState { protected $enable: boolean; protected $x: number; protected $y: number; protected $width: number; protected $height: number; protected $hasChanged: boolean; protected $changes: ScissorStateParams; /** * Indicates whether the state has changes which are not committed to the GPU */ get isDirty(): boolean; /** * Enables or disables the scissor test */ get enable(): boolean; set enable(value: boolean); /** * Gets and sets the x scissor parameter */ get x(): number; set x(value: number); /** * Gets and sets the y scissor parameter */ get y(): number; set y(value: number); /** * Gets and sets the width scissor parameter */ get width(): number; set width(value: number); /** * Gets and sets the height scissor parameter */ get height(): number; set height(value: number); /** * Assigns multiple parameters to the current state */ assign(state?: ScissorStateParams): this; /** * Uploads all changes to the GPU * * @param state - State changes to be assigned before committing */ commit(state?: ScissorStateParams): this; /** * Creates a copy of this state state */ copy(): IScissorState; /** * Creates a copy of this state and writes it into the target object * * @param target - Where the state should be written to */ copy(target: T): T & IScissorState; protected commitChanges(changes: Partial): void; protected clearChanges(): void; /** * A default state with scissor test disabled */ static Default: Readonly>; } //# sourceMappingURL=ScissorState.d.ts.map