Class RendererUtil

java.lang.Object
com.jme3.renderer.android.RendererUtil

public class RendererUtil extends Object
Utility class used by the OGLESShaderRenderer and sister classes.
Author:
Kirill Vainer
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static boolean
    When set to true, every OpenGL call will check for errors and throw an exception if there is one, if false, no error checking is performed.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    checkEGLError(javax.microedition.khronos.egl.EGL10 egl)
    Checks for an EGL error and throws a RendererException if there is one.
    static void
    Checks for an OpenGL error and throws a RendererException if there is one.
    static void
    Checks for an OpenGL error and throws a RendererException if there is one.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ENABLE_ERROR_CHECKING

      public static boolean ENABLE_ERROR_CHECKING
      When set to true, every OpenGL call will check for errors and throw an exception if there is one, if false, no error checking is performed.
  • Method Details

    • checkGLErrorForced

      public static void checkGLErrorForced()
      Checks for an OpenGL error and throws a RendererException if there is one. Ignores the value of ENABLE_ERROR_CHECKING.
    • checkEGLError

      public static void checkEGLError(javax.microedition.khronos.egl.EGL10 egl)
      Checks for an EGL error and throws a RendererException if there is one. Ignores the value of ENABLE_ERROR_CHECKING.
      Parameters:
      egl - (not null)
    • checkGLError

      public static void checkGLError()
      Checks for an OpenGL error and throws a RendererException if there is one. Does nothing if ENABLE_ERROR_CHECKING is set to false.