List of usage examples for org.lwjgl.opengl GL15 GL_SAMPLES_PASSED
int GL_SAMPLES_PASSED
To view the source code for org.lwjgl.opengl GL15 GL_SAMPLES_PASSED.
Click Source Link
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); }