Skip to content

Commit

Permalink
chore: update program types (#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
pschroen authored Mar 8, 2024
1 parent 44e2d24 commit ce93f33
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion types/core/Program.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export interface ProgramOptions {
vertex: string;
fragment: string;
uniforms: Record<string, any>;

transparent: boolean;
cullFace: GLenum | false | null;
frontFace: GLenum;
Expand Down Expand Up @@ -39,14 +40,18 @@ export class Program {
blendFunc: BlendFunc;
blendEquation: BlendEquation;

vertexShader: WebGLShader;
fragmentShader: WebGLShader;
program: WebGLProgram;
uniformLocations: Map<UniformInfo, WebGLUniformLocation>;
attributeLocations: Map<WebGLActiveInfo, GLint>;
attributeOrder: string;

constructor(gl: OGLRenderingContext, options?: Partial<ProgramOptions>);

setBlendFunc(src: GLenum, dst: GLenum, srcAlpha?: GLenum, dstAlpha?: GLenum): void;
setShaders(options: { vertex: string; fragment: string }): void;

setBlendFunc(src: GLenum, dst: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;

setBlendEquation(modeRGB: GLenum, modeAlpha: GLenum): void;

Expand Down

0 comments on commit ce93f33

Please sign in to comment.