List of usage examples for org.lwjgl.opengl GL15 glGenQueries
@NativeType("void") public static int glGenQueries()
From source file:com.badlogic.gdx.backends.jglfw.JglfwGL30.java
License:Apache License
@Override public void glGenQueries(int n, int[] ids, int offset) { for (int i = offset; i < offset + n; i++) { ids[i] = GL15.glGenQueries(); }//from www. j a v a2 s . c o m }
From source file:com.badlogic.gdx.backends.lwjgl.LwjglGL30.java
License:Apache License
@Override public void glGenQueries(int n, IntBuffer ids) { for (int i = 0; i < n; i++) { ids.put(GL15.glGenQueries()); }/*w w w . j av a 2 s . c o m*/ }
From source file:io.root.gfx.glutils.GL.java
License:Apache License
public static void glGenQueries(int n, int[] ids, int offset) { for (int i = offset; i < offset + n; i++) { ids[i] = GL15.glGenQueries(); }/*ww w .j a v a 2 s. co m*/ }
From source file:io.root.gfx.glutils.GL.java
License:Apache License
public static void glGenQueries(int n, IntBuffer ids) { for (int i = 0; i < n; i++) { ids.put(GL15.glGenQueries()); }// ww w . j av a 2 s .c o m }
From source file:jpcsp.graphics.RE.RenderingEngineLwjgl.java
License:Open Source License
@Override public int genQuery() { return GL15.glGenQueries(); }
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 . jav a 2 s .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 int glGenQueries() { return GL15.glGenQueries(); }