@tolokoban/tgd
Version:
ToloGameDev library for WebGL2
13 lines • 785 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 | TgdCodeBloc[];
export declare function isCodeBloc(v: unknown): v is TgdCodeBloc;
export declare function tgdCodeStringify(code: TgdCodeBloc, indent?: 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