Package com.google.gwt.webgl.client

Examples of com.google.gwt.webgl.client.WebGLProgram


    gl.viewport(x, y, width, height);
  }

  @Override
  public void glAttachShader (int program, int shader) {
    WebGLProgram glProgram = programs.get(program);
    WebGLShader glShader = shaders.get(shader);
    gl.attachShader(glProgram, glShader);
  }
View Full Code Here


    gl.attachShader(glProgram, glShader);
  }

  @Override
  public void glBindAttribLocation (int program, int index, String name) {
    WebGLProgram glProgram = programs.get(program);
    gl.bindAttribLocation(glProgram, index, name);
  }
View Full Code Here

    gl.compileShader(glShader);
  }

  @Override
  public int glCreateProgram () {
    WebGLProgram program = gl.createProgram();
    return allocateProgramId(program);
  }
View Full Code Here

    }
  }

  @Override
  public void glDeleteProgram (int program) {
    WebGLProgram prog = programs.get(program);
    deallocateProgramId(program);
    gl.deleteProgram(prog);
  }
View Full Code Here

    throw new GdxRuntimeException("not implemented");
  }

  @Override
  public int glGetAttribLocation (int program, String name) {
    WebGLProgram prog = programs.get(program);
    return gl.getAttribLocation(prog, name);
  }
View Full Code Here

    gl.viewport(x, y, width, height);
  }

  @Override
  public void glAttachShader (int program, int shader) {
    WebGLProgram glProgram = programs.get(program);
    WebGLShader glShader = shaders.get(shader);
    gl.attachShader(glProgram, glShader);
  }
View Full Code Here

    gl.attachShader(glProgram, glShader);
  }

  @Override
  public void glBindAttribLocation (int program, int index, String name) {
    WebGLProgram glProgram = programs.get(program);
    gl.bindAttribLocation(glProgram, index, name);
  }
View Full Code Here

    gl.compileShader(glShader);
  }

  @Override
  public int glCreateProgram () {
    WebGLProgram program = gl.createProgram();
    return allocateProgramId(program);
  }
View Full Code Here

    }
  }

  @Override
  public void glDeleteProgram (int program) {
    WebGLProgram prog = programs.get(program);
    deallocateProgramId(program);
    gl.deleteProgram(prog);
  }
View Full Code Here

    throw new GdxRuntimeException("not implemented");
  }

  @Override
  public int glGetAttribLocation (int program, String name) {
    WebGLProgram prog = programs.get(program);
    return gl.getAttribLocation(prog, name);
  }
View Full Code Here

TOP

Related Classes of com.google.gwt.webgl.client.WebGLProgram

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.