Example usage for org.lwjgl.opengl GL15 glBeginQuery

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

Introduction

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

Prototype

public static void glBeginQuery(@NativeType("GLenum") int target, @NativeType("GLuint") int id) 

Source Link

Document

Creates a query object and makes it active.

Usage

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

License:Apache License

@Override
public void glBeginQuery(int target, int id) {
    GL15.glBeginQuery(target, id);
}

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

License:Apache License

public static void glBeginQuery(int target, int id) {
    GL15.glBeginQuery(target, id);
}

From source file:jpcsp.graphics.RE.RenderingEngineLwjgl.java

License:Open Source License

@Override
public void beginQuery(int id) {
    GL15.glBeginQuery(GL15.GL_SAMPLES_PASSED, id);
}

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

License:Apache License

public void executeOcclusionQuery() {
    GL11.glColorMask(false, false, false, false);
    GL11.glDepthMask(false);//from  ww  w. ja  va  2s . c o  m

    if (_activeMeshes != null) {
        for (int j = 0; j < VERTICAL_SEGMENTS; j++) {
            if (!isSubMeshEmpty(j)) {
                if (_queries[j] == 0) {
                    _queries[j] = GL15.glGenQueries();

                    GL15.glBeginQuery(GL15.GL_SAMPLES_PASSED, _queries[j]);
                    getSubMeshAABB(j).renderSolid();
                    GL15.glEndQuery(GL15.GL_SAMPLES_PASSED);
                }
            }
        }
    }

    GL11.glColorMask(true, true, true, true);
    GL11.glDepthMask(true);
}

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

License:Open Source License

public static void glBeginQuery(int a, int b) {
    GL15.glBeginQuery(a, b);
}