Example usage for org.lwjgl.opengl GL15 GL_SAMPLES_PASSED

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

Introduction

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

Prototype

int GL_SAMPLES_PASSED

To view the source code for org.lwjgl.opengl GL15 GL_SAMPLES_PASSED.

Click Source Link

Document

Accepted by the target parameter of BeginQuery, EndQuery, and GetQueryiv.

Usage

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:jpcsp.graphics.RE.RenderingEngineLwjgl.java

License:Open Source License

@Override
public void endQuery() {
    GL15.glEndQuery(GL15.GL_SAMPLES_PASSED);
}

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

License:Apache License

public void executeOcclusionQuery() {
    GL11.glColorMask(false, false, false, false);
    GL11.glDepthMask(false);// ww w  .  jav  a 2  s  .  co  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);
}