@tolokoban/tgd
Version:
ToloGameDev library for WebGL2
14 lines • 913 B
TypeScript
import { WebglAttributeType, WebglUniformType } from "..";
export interface TgdCodeVariables<Type extends WebglAttributeType | WebglUniformType> {
[name: string]: Type;
}
export interface TgdCodeFunctions {
[name: string]: TgdCodeBloc;
}
export type TgdCodeBloc = string | null | TgdCodeFunctions | TgdCodeBloc[];
export declare function isTgdCodeBloc(data: unknown): data is TgdCodeBloc;
export declare function isCodeBloc(v: unknown): v is TgdCodeBloc;
export declare function tgdCodeStringify(code: TgdCodeBloc, indent?: string, setOfFunctionNames?: Set<string>): string;
export declare function expandVariables<Type extends WebglAttributeType | WebglUniformType>(definition: TgdCodeVariables<Type>, prefix: string, comment?: string): TgdCodeBloc[];
export declare function expandFunctions(definition: TgdCodeFunctions | TgdCodeBloc, comment?: string): TgdCodeBloc[];
//# sourceMappingURL=code.d.ts.map