Skip to main content

GLDrawCreateProgram

Callable

  • GLDrawCreateProgram(gl: WebGL2RenderingContext, vertexShader: WebGLShader, fragmentShader: WebGLShader): WebGLProgram

  • Creates the WebGL program from the vertex and fragment shaders


    Parameters

    • gl: WebGL2RenderingContext

      WebGL context

    • vertexShader: WebGLShader

      The vertex shader to create the program with

    • fragmentShader: WebGLShader

      The fragment shader to create the program with

    Returns WebGLProgram

    • The created WebGL program