本文整理汇总了Java中android.opengl.EGL14.eglSwapBuffers方法的典型用法代码示例。如果您正苦于以下问题:Java EGL14.eglSwapBuffers方法的具体用法?Java EGL14.eglSwapBuffers怎么用?Java EGL14.eglSwapBuffers使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类android.opengl.EGL14
的用法示例。
在下文中一共展示了EGL14.eglSwapBuffers方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: swapBuffers
import android.opengl.EGL14; //导入方法依赖的package包/类
@Override
public void swapBuffers() {
checkIsNotReleased();
if (eglSurface == EGL14.EGL_NO_SURFACE) {
throw new RuntimeException("No EGLSurface - can't swap buffers");
}
synchronized (EglBase.lock) {
EGL14.eglSwapBuffers(eglDisplay, eglSurface);
}
}
示例2: swap
import android.opengl.EGL14; //导入方法依赖的package包/类
private int swap(final EGLSurface surface) {
// if (DEBUG) Log.v(TAG, "swap:");
if (!EGL14.eglSwapBuffers(mEglDisplay, surface)) {
final int err = EGL14.eglGetError();
if (DEBUG) Log.w(TAG, "swap:err=" + err);
return err;
}
return EGL14.EGL_SUCCESS;
}
示例3: swapBuffers
import android.opengl.EGL14; //导入方法依赖的package包/类
/**
* Calls eglSwapBuffers. Use this to "publish" the current frame.
* @param display an EGL display connection instance
* @param surface an EGL rendering surface
*/
public static void swapBuffers(@NonNull EGLDisplay display, @NonNull EGLSurface surface) {
//noinspection StatementWithEmptyBody
if (!EGL14.eglSwapBuffers(display, surface)) {
logError();
throw new RuntimeException("Unable to swap buffers. " +
getDisplayString(display) + "; " + getSurfaceString(surface));
} else {/*
logDebug("Swap buffers. " +
getDisplayString(display) + "; " + getSurfaceString(surface));*/
}
}
示例4: swapBuffers
import android.opengl.EGL14; //导入方法依赖的package包/类
@Override
public void swapBuffers(long timestampNs) {
checkIsNotReleased();
if (eglSurface == EGL14.EGL_NO_SURFACE) {
throw new RuntimeException("No EGLSurface - can't swap buffers");
}
synchronized (EglBase.lock) {
// See
// https://android.googlesource.com/platform/frameworks/native/+/tools_r22.2/opengl/specs/EGL_ANDROID_presentation_time.txt
if (timestampNs != -1) {
EGLExt.eglPresentationTimeANDROID(eglDisplay, eglSurface, timestampNs);
}
EGL14.eglSwapBuffers(eglDisplay, eglSurface);
}
}
示例5: swap
import android.opengl.EGL14; //导入方法依赖的package包/类
private int swap(final EGLSurface surface) {
if (!EGL14.eglSwapBuffers(mEglDisplay, surface)) {
final int err = EGL14.eglGetError();
return err;
}
return EGL14.EGL_SUCCESS;
}
示例6: swapBuffers
import android.opengl.EGL14; //导入方法依赖的package包/类
public void swapBuffers(EGLSurface surface){
EGL14.eglSwapBuffers(mEGLDisplay,surface);
}
示例7: swapBuffers
import android.opengl.EGL14; //导入方法依赖的package包/类
boolean swapBuffers() {
return EGL14.eglSwapBuffers(mEGLDisplay, mEGLSurface);
}
示例8: swapBuffers
import android.opengl.EGL14; //导入方法依赖的package包/类
public boolean swapBuffers() {
return EGL14.eglSwapBuffers(mEGLDisplay, mEGLSurface);
}
示例9: swapBuffers
import android.opengl.EGL14; //导入方法依赖的package包/类
/**
* Calls eglSwapBuffers. Use this to "publish" the current frame.
*/
public boolean swapBuffers() {
return EGL14.eglSwapBuffers(mEGLDisplay, mEGLSurface);
}
示例10: swapBuffers
import android.opengl.EGL14; //导入方法依赖的package包/类
public boolean swapBuffers(EGLSurface eglSurface) {
return EGL14.eglSwapBuffers(mEGLDisplay, eglSurface);
}
示例11: swapBuffer
import android.opengl.EGL14; //导入方法依赖的package包/类
public void swapBuffer() {
EGL14.eglSwapBuffers(eglDisplay, eglSurface);
}
示例12: swapBuffers
import android.opengl.EGL14; //导入方法依赖的package包/类
public boolean swapBuffers() {
return EGL14.eglSwapBuffers(mEGLDisplay, mEGLSurface);
}
示例13: swapBuffers
import android.opengl.EGL14; //导入方法依赖的package包/类
/**
* Calls eglSwapBuffers. Use this to "publish" the current frame.
*
* @return false on failure
*/
public boolean swapBuffers(EGLSurface eglSurface) {
return EGL14.eglSwapBuffers(mEGLDisplay, eglSurface);
}