Examples of glCreateProgram()


Examples of com.badlogic.gdx.graphics.GL20.glCreateProgram()

    return shader;
  }

  private int linkProgram () {
    GL20 gl = Gdx.gl20;
    int program = gl.glCreateProgram();
    if (program == 0) return -1;

    gl.glAttachShader(program, vertexShaderHandle);
    gl.glAttachShader(program, fragmentShaderHandle);
    gl.glLinkProgram(program);
View Full Code Here

Examples of com.badlogic.gdx.graphics.GL20.glCreateProgram()

    return shader;
  }

  private int linkProgram () {
    GL20 gl = Gdx.graphics.getGL20();
    int program = gl.glCreateProgram();
    if (program == 0) return -1;

    gl.glAttachShader(program, vertexShaderHandle);
    gl.glAttachShader(program, fragmentShaderHandle);
    gl.glLinkProgram(program);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.