Example usage for org.lwjgl.opengl GL15 glDeleteQueries

List of usage examples for org.lwjgl.opengl GL15 glDeleteQueries

Introduction

In this page you can find the example usage for org.lwjgl.opengl GL15 glDeleteQueries.

Prototype

public static void glDeleteQueries(@NativeType("GLuint const *") int[] ids) 

Source Link

Document

Array version of: #glDeleteQueries DeleteQueries

Usage

From source file:com.badlogic.gdx.backends.jglfw.JglfwGL30.java

License:Apache License

@Override
public void glDeleteQueries(int n, int[] ids, int offset) {
    for (int i = offset; i < offset + n; i++) {
        GL15.glDeleteQueries(ids[i]);
    }/*from  w w w.ja  v a 2s  .c om*/
}

From source file:com.badlogic.gdx.backends.jglfw.JglfwGL30.java

License:Apache License

@Override
public void glDeleteQueries(int n, IntBuffer ids) {
    GL15.glDeleteQueries(ids);
}

From source file:com.badlogic.gdx.backends.lwjgl.LwjglGL30.java

License:Apache License

@Override
public void glDeleteQueries(int n, IntBuffer ids) {
    for (int i = 0; i < n; i++) {
        GL15.glDeleteQueries(ids.get());
    }/*  w ww  .j  av  a 2s  .co m*/
}

From source file:io.root.gfx.glutils.GL.java

License:Apache License

public static void glDeleteQueries(int n, int[] ids, int offset) {
    for (int i = offset; i < offset + n; i++) {
        GL15.glDeleteQueries(ids[i]);
    }//  ww  w .ja  va 2s. c  o  m
}

From source file:io.root.gfx.glutils.GL.java

License:Apache License

public static void glDeleteQueries(int n, IntBuffer ids) {
    for (int i = 0; i < n; i++) {
        GL15.glDeleteQueries(ids.get());
    }//  w  ww. j  a v  a2s  .c  o  m
}

From source file:org.terasology.logic.world.Chunk.java

License:Apache License

public void applyOcclusionQueries() {
    for (int i = 0; i < VERTICAL_SEGMENTS; i++) {
        if (_queries[i] != 0) {
            int result = GL15.glGetQueryObjectui(_queries[i], GL15.GL_QUERY_RESULT_AVAILABLE);

            if (result != 0) {

                result = GL15.glGetQueryObjectui(_queries[i], GL15.GL_QUERY_RESULT);

                _occlusionCulled[i] = result <= 0;

                GL15.glDeleteQueries(_queries[i]);
                _queries[i] = 0;//  w w  w .j  a  va2s .c o m
            }
        }
    }
}

From source file:tk.ivybits.engine.gl.GL.java

License:Open Source License

public static void glDeleteQueries(IntBuffer a) {
    GL15.glDeleteQueries(a);
}

From source file:tk.ivybits.engine.gl.GL.java

License:Open Source License

public static void glDeleteQueries(int a) {
    GL15.glDeleteQueries(a);
}