Examples of glDeleteProgram()


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

  public void dispose () {
    GL20 gl = Gdx.gl20;
    gl.glUseProgram(0);
    gl.glDeleteShader(vertexShaderHandle);
    gl.glDeleteShader(fragmentShaderHandle);
    gl.glDeleteProgram(program);
    if (shaders.get(Gdx.app) != null) shaders.get(Gdx.app).removeValue(this, true);
  }

  /** Disables the vertex attribute with the given name
   *
 
View Full Code Here

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

  public void dispose () {
    GL20 gl = Gdx.graphics.getGL20();
    gl.glUseProgram(0);
    gl.glDeleteShader(vertexShaderHandle);
    gl.glDeleteShader(fragmentShaderHandle);
    gl.glDeleteProgram(program);
    if (shaders.get(Gdx.app) != null) shaders.get(Gdx.app).remove(this);
  }

  /** Disables the vertex attribute with the given name
   *
 
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.