UNPKG

polygonjs-engine

Version:

node-based webgl 3D engine https://polygonjs.com

28 lines (27 loc) 965 B
import { TextureAllocation } from './TextureAllocation'; import { PolyScene } from '../../../../scene/PolyScene'; import { CoreGraphNodeId } from '../../../../../core/graph/CoreGraph'; export interface TextureVariableData { name: string; size: number; nodes: string[]; } export declare class TextureVariable { private _name; private _size; private _allocation; private _position; private _graph_node_ids; constructor(_name: string, _size: number); set_allocation(allocation: TextureAllocation): void; get allocation(): TextureAllocation | undefined; get graph_node_ids(): Map<number, boolean> | undefined; add_graph_node_id(id: CoreGraphNodeId): void; name(): string; get size(): number; setPosition(position: number): void; get position(): number; get component(): string; static from_json(data: TextureVariableData): TextureVariable; toJSON(scene: PolyScene): TextureVariableData; }