Examples of glLoadMatrixf()


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

  private void setupMatrices () {
    if(!Gdx.graphics.isGL20Available()) {
      GL10 gl = Gdx.gl10;
      gl.glMatrixMode(GL10.GL_PROJECTION);
      gl.glLoadMatrixf(projectionMatrix.val, 0);
      gl.glMatrixMode(GL10.GL_MODELVIEW);
      gl.glLoadMatrixf(transformMatrix.val, 0);
    } else {
      combinedMatrix.set(projectionMatrix).mul(transformMatrix);
      if (customShader != null) {
View Full Code Here

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

    if(!Gdx.graphics.isGL20Available()) {
      GL10 gl = Gdx.gl10;
      gl.glMatrixMode(GL10.GL_PROJECTION);
      gl.glLoadMatrixf(projectionMatrix.val, 0);
      gl.glMatrixMode(GL10.GL_MODELVIEW);
      gl.glLoadMatrixf(transformMatrix.val, 0);
    } else {
      combinedMatrix.set(projectionMatrix).mul(transformMatrix);
      if (customShader != null) {
        customShader.setUniformMatrix("u_proj", projectionMatrix);
        customShader.setUniformMatrix("u_trans", transformMatrix);
View Full Code Here

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

  private void setupMatrices () {
    if (!Gdx.graphics.isGL20Available()) {
      GL10 gl = Gdx.gl10;
      gl.glMatrixMode(GL10.GL_PROJECTION);
      gl.glLoadMatrixf(projectionMatrix.val, 0);
      gl.glMatrixMode(GL10.GL_MODELVIEW);
      gl.glLoadMatrixf(transformMatrix.val, 0);
    } else {
      combinedMatrix.set(projectionMatrix).mul(transformMatrix);
      if (customShader != null) {
View Full Code Here

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

    if (!Gdx.graphics.isGL20Available()) {
      GL10 gl = Gdx.gl10;
      gl.glMatrixMode(GL10.GL_PROJECTION);
      gl.glLoadMatrixf(projectionMatrix.val, 0);
      gl.glMatrixMode(GL10.GL_MODELVIEW);
      gl.glLoadMatrixf(transformMatrix.val, 0);
    } else {
      combinedMatrix.set(projectionMatrix).mul(transformMatrix);
      if (customShader != null) {
        customShader.setUniformMatrix("u_projTrans", combinedMatrix);
        customShader.setUniformi("u_texture", 0);
View Full Code Here

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

  private void setupMatrices () {
    if (!Gdx.graphics.isGL20Available()) {
      GL10 gl = Gdx.gl10;
      gl.glMatrixMode(GL10.GL_PROJECTION);
      gl.glLoadMatrixf(projectionMatrix.val, 0);
      gl.glMatrixMode(GL10.GL_MODELVIEW);
      gl.glLoadMatrixf(transformMatrix.val, 0);
    } else {
      combinedMatrix.set(projectionMatrix).mul(transformMatrix);
      if (customShader != null) {
View Full Code Here

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

    if (!Gdx.graphics.isGL20Available()) {
      GL10 gl = Gdx.gl10;
      gl.glMatrixMode(GL10.GL_PROJECTION);
      gl.glLoadMatrixf(projectionMatrix.val, 0);
      gl.glMatrixMode(GL10.GL_MODELVIEW);
      gl.glLoadMatrixf(transformMatrix.val, 0);
    } else {
      combinedMatrix.set(projectionMatrix).mul(transformMatrix);
      if (customShader != null) {
        customShader.setUniformMatrix("u_projTrans", combinedMatrix);
        customShader.setUniformi("u_texture", 0);
View Full Code Here

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

      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);

      mesh.bind();
    } else {
View Full Code Here

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

      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);

      mesh.bind();
    } else {
      combinedMatrix.set(projectionMatrix).mul(transformMatrix);
View Full Code Here

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

  private void setupMatrices () {
    if (!Gdx.graphics.isGL20Available()) {
      GL10 gl = Gdx.gl10;
      gl.glMatrixMode(GL10.GL_PROJECTION);
      gl.glLoadMatrixf(projectionMatrix.val, 0);
      gl.glMatrixMode(GL10.GL_MODELVIEW);
      gl.glLoadMatrixf(transformMatrix.val, 0);
    } else {
      combinedMatrix.set(projectionMatrix).mul(transformMatrix);
      if (customShader != null) {
View Full Code Here

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

    if (!Gdx.graphics.isGL20Available()) {
      GL10 gl = Gdx.gl10;
      gl.glMatrixMode(GL10.GL_PROJECTION);
      gl.glLoadMatrixf(projectionMatrix.val, 0);
      gl.glMatrixMode(GL10.GL_MODELVIEW);
      gl.glLoadMatrixf(transformMatrix.val, 0);
    } else {
      combinedMatrix.set(projectionMatrix).mul(transformMatrix);
      if (customShader != null) {
        customShader.setUniformMatrix("u_proj", projectionMatrix);
        customShader.setUniformMatrix("u_trans", transformMatrix);
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.