/** * An object with all offset state parameters * * @public */ export interface IOffsetState { enable: boolean; offsetFactor: number; offsetUnits: number; } /** * Represents a sub set of {@link IOffsetState} * * @public */ export declare type OffsetStateParams = Partial; /** * @public */ export declare class OffsetState implements IOffsetState { protected $enable: boolean; protected $offsetFactor: number; protected $offsetUnits: number; protected $hasChanged: boolean; protected $changes: OffsetStateParams; /** * Indicates whether the state has changes which are not committed to the GPU */ get isDirty(): boolean; /** * Enables or disables the offset */ get enable(): boolean; set enable(value: boolean); /** * Gets and sets the offset factor */ get offsetFactor(): number; set offsetFactor(value: number); /** * Gets and sets the offset units */ get offsetUnits(): number; set offsetUnits(value: number); /** * Assigns multiple parameters to the current state */ assign(state: OffsetStateParams): this; /** * Uploads all changes to the GPU * * @param state - State changes to be assigned before committing */ commit(state?: OffsetStateParams): this; /** * Creates a copy of this state state */ copy(): IOffsetState; /** * 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 & IOffsetState; protected commitChanges(changes: Partial): void; protected clearChanges(): void; /** * Converts a state name or options into {@link DepthStateParams} * * @param state - The state name or state options to convert */ static convert(state: string | OffsetStateParams): OffsetStateParams; /** * A default state with offset disabled */ static Default: Readonly>; } //# sourceMappingURL=OffsetState.d.ts.map