Skip to content

opt_locations of createProgramInfo is missing from typescript bindings  #231

Open
@Deamon87

Description

@Deamon87

Hi.

As of now there is no possible way to pass opt_locations from typescript for createProgramInfo and other similar functions.

At the moment of writing, createProgramInfo is defined as

export function createProgramInfo(gl: WebGLRenderingContext, shaderSources: string[], opt_attribs?: ProgramOptions | string[] | ErrorCallback, opt_errorCallback?: ErrorCallback): ProgramInfo;

Thus it has 4 parameters: gl, shaderSources, opt_attribs, opt_errorCallback

While in reality, the js function takes 5 parameters: gl, shaderSources, opt_attribs, opt_locations, opt_errorCallback

function createProgramInfo(gl, shaderSources, opt_attribs, opt_locations, opt_errorCallback) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions