Java 类javax.microedition.khronos.egl.EGL 实例源码

项目:ingress-indonesia-dev    文件:EGLLogWrapper.java   
public EGLLogWrapper(EGL paramEGL, int paramInt, Writer paramWriter)
{
  this.mEgl10 = ((EGL10)paramEGL);
  this.mLog = paramWriter;
  boolean bool2;
  if ((paramInt & 0x4) != 0)
  {
    bool2 = bool1;
    this.mLogArgumentNames = bool2;
    if ((paramInt & 0x1) == 0)
      break label55;
  }
  while (true)
  {
    this.mCheckError = bool1;
    return;
    bool2 = false;
    break;
    label55: bool1 = false;
  }
}
项目:android-openGL-canvas    文件:EGLLogWrapper.java   
public EGLLogWrapper(EGL egl, int configFlags, Writer log) {
    mEgl10 = (EGL10) egl;
    mLog = log;
    mLogArgumentNames =
            (GLDebugHelper.CONFIG_LOG_ARGUMENT_NAMES & configFlags) != 0;
    mCheckError =
            (GLDebugHelper.CONFIG_CHECK_GL_ERROR & configFlags) != 0;
}
项目:360-Video-Player-for-Android    文件:RajawaliGLDebugger.java   
private RajawaliGLDebugger(int config, GL gl, EGL egl) {
    mConfig = config;
    mWriter = new Writer() {

        @Override
        public void close() throws IOException {
            flushBuilder();
        }

        @Override
        public void flush() throws IOException {
            flushBuilder();
        }

        @Override
        public void write(char[] buf, int offset, int count) throws IOException {
            for (int i = 0; i < count; i++) {
                char c = buf[offset + i];
                if (c == '\n') {
                    flushBuilder();
                } else {
                    mBuilder.append(c);
                }
            }
        }

        private void flushBuilder() {
            if (mBuilder.length() > 0) {
                RajLog.v(mBuilder.toString());
                mBuilder.delete(0, mBuilder.length());
            }
        }
    };

    mGL = (gl != null) ? (GL10) GLDebugHelper.wrap(gl, config, mWriter) : null;
    mEGL = (egl != null) ? GLDebugHelper.wrap(egl, config, mWriter) : null;
}
项目:VR-Defense-Game    文件:GLDebugger.java   
private GLDebugger(int config, GL gl, EGL egl) {
    mConfig = config;
    mWriter = new Writer() {

        @Override
        public void close() throws IOException {
            flushBuilder();
        }

        @Override
        public void flush() throws IOException {
            flushBuilder();
        }

        @Override
        public void write(char[] buf, int offset, int count) throws IOException {
            for (int i = 0; i < count; i++) {
                char c = buf[offset + i];
                if (c == '\n') {
                    flushBuilder();
                } else {
                    mBuilder.append(c);
                }
            }
        }

        private void flushBuilder() {
            if (mBuilder.length() > 0) {
                RajLog.v(mBuilder.toString());
                mBuilder.delete(0, mBuilder.length());
            }
        }
    };

    mGL = (gl != null) ? (GL10) GLDebugHelper.wrap(gl, config, mWriter) : null;
    mEGL = (egl != null) ? GLDebugHelper.wrap(egl, config, mWriter) : null;
}
项目:ingress-indonesia-dev    文件:GLDebugHelper.java   
public static EGL wrap(EGL paramEGL, int paramInt, Writer paramWriter)
{
  if (paramWriter != null)
    paramEGL = new EGLLogWrapper(paramEGL, paramInt, paramWriter);
  return paramEGL;
}
项目:360-Video-Player-for-Android    文件:RajawaliGLDebugger.java   
/**
 * Retrieve the wrapped {@link EGL} instance. If this debugger was not configured with a {@link EGL}
 * instance an exception will be thrown.
 *
 * @return {@link EGL} The wrapped EGL instance.
 * @throws IllegalStateException
 */
public EGL getEGL() throws IllegalStateException {
    if (mEGL == null) throw new IllegalStateException("This debugger was not configured with an EGL context.");
    return mEGL;
}
项目:360-Video-Player-for-Android    文件:RajawaliGLDebugger.java   
/**
 * Sets the {@link EGL} instance to wrap.
 *
 * @param egl {@link EGL}
 */
public void setEGL(EGL egl) {
    mEGL = egl;
}
项目:VR-Defense-Game    文件:GLDebugger.java   
/**
 * Retrieve the wrapped {@link EGL} instance. If this debugger was not configured with a {@link EGL}
 * instance an exception will be thrown.
 *
 * @return {@link EGL} The wrapped EGL instance.
 * @throws IllegalStateException
 */
public EGL getEGL() throws IllegalStateException {
    if (mEGL == null) throw new IllegalStateException("This debugger was not configured with an EGL context.");
    return mEGL;
}
项目:VR-Defense-Game    文件:GLDebugger.java   
/**
 * Sets the {@link EGL} instance to wrap.
 *
 * @param egl {@link EGL}
 */
public void setEGL(EGL egl) {
    mEGL = egl;
}