Package org.lwjgl.opengl

Examples of org.lwjgl.opengl.OpenGLException


   *          if GLES20.glGetError() returns anything else than GLES20.GL_NO_ERROR
   */
  public static void checkGLError() throws OpenGLException {
    int err = glGetError();
    if ( err != GL_NO_ERROR )
      throw new OpenGLException(err);
  }
View Full Code Here


  }

  /** Helper method to ensure that array buffer objects are disabled. If they are enabled, we'll throw an OpenGLException */
  static void ensureArrayVBOdisabled() {
    if ( LWJGLUtil.CHECKS && StateTracker.getTracker().arrayBuffer != 0 )
      throw new OpenGLException("Cannot use Buffers when Array Buffer Object is enabled");
  }
View Full Code Here

  }

  /** Helper method to ensure that array buffer objects are enabled. If they are disabled, we'll throw an OpenGLException */
  static void ensureArrayVBOenabled() {
    if ( LWJGLUtil.CHECKS && StateTracker.getTracker().arrayBuffer == 0 )
      throw new OpenGLException("Cannot use offsets when Array Buffer Object is disabled");
  }
View Full Code Here

  }

  /** Helper method to ensure that element array buffer objects are disabled. If they are enabled, we'll throw an OpenGLException */
  static void ensureElementVBOdisabled() {
    if ( LWJGLUtil.CHECKS && StateTracker.getTracker().elementArrayBuffer != 0 )
      throw new OpenGLException("Cannot use Buffers when Element Array Buffer Object is enabled");
  }
View Full Code Here

  }

  /** Helper method to ensure that element array buffer objects are enabled. If they are disabled, we'll throw an OpenGLException */
  static void ensureElementVBOenabled() {
    if ( LWJGLUtil.CHECKS && StateTracker.getTracker().elementArrayBuffer == 0 )
      throw new OpenGLException("Cannot use offsets when Element Array Buffer Object is disabled");
  }
View Full Code Here

    glBindTexture(GL_TEXTURE_2D, 0);
  }
 
  public static int glTexture(int i){
    if(i >= GL20.GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS){
      throw new OpenGLException("Number of textures exceeds texture limit");
    }
    return GL_TEXTURE0 + i;
  }
View Full Code Here

TOP

Related Classes of org.lwjgl.opengl.OpenGLException

Copyright © 2018 www.massapicom. 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.