Package com.badlogic.gdx.graphics

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


  /** Makes OpenGL ES 2.0 use this vertex and fragment shader pair. When you are done with this shader you have to call
   * {@link ShaderProgram#end()}. */
  public void begin () {
    GL20 gl = Gdx.gl20;
    checkManaged();
    gl.glUseProgram(program);
  }

  /** Disables this shader. Must be called when one is done with the shader. Don't mix it with dispose, that will release the
   * shader resources. */
  public void end () {
View Full Code Here


  /** Disables this shader. Must be called when one is done with the shader. Don't mix it with dispose, that will release the
   * shader resources. */
  public void end () {
    GL20 gl = Gdx.gl20;
    gl.glUseProgram(0);
  }

  /** Disposes all resources associated with this shader. Must be called when the shader is no longer used. */
  public void dispose () {
    GL20 gl = Gdx.gl20;
View Full Code Here

  }

  /** Disposes all resources associated with this shader. Must be called when the shader is no longer used. */
  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);
  }
View Full Code Here

  /** Makes OpenGL ES 2.0 use this vertex and fragment shader pair. When you are done with this shader you have to call
   * {@link ShaderProgram#end()}. */
  public void begin () {
    GL20 gl = Gdx.graphics.getGL20();
    checkManaged();
    gl.glUseProgram(program);
  }

  /** Disables this shader. Must be called when one is done with the shader. Don't mix it with dispose, that will release the
   * shader resources. */
  public void end () {
View Full Code Here

  /** Disables this shader. Must be called when one is done with the shader. Don't mix it with dispose, that will release the
   * shader resources. */
  public void end () {
    GL20 gl = Gdx.graphics.getGL20();
    gl.glUseProgram(0);
  }

  /** Disposes all resources associated with this shader. Must be called when the shader is no longer used. */
  public void dispose () {
    GL20 gl = Gdx.graphics.getGL20();
View Full Code Here

  }

  /** Disposes all resources associated with this shader. Must be called when the shader is no longer used. */
  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);
  }
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.