Package com.badlogic.gdx.graphics

Examples of com.badlogic.gdx.graphics.GL10.glEnable()


    } else {
      if (blendingDisabled) {
        Gdx.gl10.glDisable(GL10.GL_BLEND);
      } else {
        GL10 gl10 = Gdx.gl10;
        gl10.glEnable(GL10.GL_BLEND);
        gl10.glBlendFunc(blendSrcFunc, blendDstFunc);
      }
      mesh.render(GL10.GL_TRIANGLES, 0, spritesInBatch * 6);
    }

 
View Full Code Here


    if (drawing) throw new IllegalStateException("end must be called before begin.");

    if (Gdx.graphics.isGL20Available() == false) {
      GL10 gl = Gdx.gl10;
      gl.glDepthMask(false);
      gl.glEnable(GL10.GL_TEXTURE_2D);

      gl.glMatrixMode(GL10.GL_PROJECTION);
      gl.glLoadMatrixf(projectionMatrix.val, 0);
      gl.glMatrixMode(GL10.GL_MODELVIEW);
      gl.glLoadMatrixf(transformMatrix.val, 0);
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.