作者:Mr_XieZhiQ | 来源:互联网 | 2023-08-22 21:57
本文整理了Java中com.jogamp.opengl.GL2.glDeleteRenderbuffers()
方法的一些代码示例,展示了GL2.glDeleteRenderbuffers()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GL2.glDeleteRenderbuffers()
方法的具体详情如下:
包路径:com.jogamp.opengl.GL2
类名称:GL2
方法名:glDeleteRenderbuffers
GL2.glDeleteRenderbuffers介绍
暂无
代码示例
代码示例来源:origin: dhale/jtk
public static void glDeleteRenderbuffers(
int n,
IntBuffer renderbuffers) {
gl().glDeleteRenderbuffers(
n,
renderbuffers);
}
代码示例来源:origin: dhale/jtk
public static void glDeleteRenderbuffers(
int n,
int[] renderbuffers,
int renderbuffers_offset) {
gl().glDeleteRenderbuffers(
n,
renderbuffers,
renderbuffers_offset);
}
代码示例来源:origin: org.bytedeco/javacv
public void releaseCLGLImage(CLGLImage2d image) {
image.release();
getGL2().glDeleteRenderbuffers(1, new int[] { image.getGLObjectID() }, 0);
}
代码示例来源:origin: org.bytedeco/javacv
public void release() {
final int minLevel = settings.pyramidLevelMin;
final int maxLevel = settings.pyramidLevelMax;
if (templateCL != null && targetCL != null && transformedCL != null &&
residualCL != null && maskCL != null) {
for (int i = minLevel; i <= maxLevel; i++) {
if (i > minLevel) templateCL[i].release();
if (i > minLevel) targetCL [i].release();
transformedCL[i].release();
residualCL [i].release();
maskCL [i].release();
}
templateCL = targetCL = transformedCL = residualCL = maskCL = null;
}
// NVIDIA drivers crash if we don't delete those before terminating
context.getGLContext().makeCurrent();
GL2 gl = context.getGL2();
if (maskfb != null) {
gl.glDeleteFramebuffers(maxLevel+1, maskfb, 0);
maskfb = null;
}
if (maskrb != null) {
gl.glDeleteRenderbuffers(maxLevel+1, maskrb, 0);
maskrb = null;
}
}
@Override protected void finalize() throws Throwable {