Example usage for org.lwjgl.opengl GL15 glGetQueryObjecti

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

Introduction

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

Prototype

@NativeType("void")
public static int glGetQueryObjecti(@NativeType("GLuint") int id, @NativeType("GLenum") int pname) 

Source Link

Document

Returns the integer value of a query object parameter.

Usage

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

License:Open Source License

@Override
public boolean getQueryResultAvailable(int id) {
    // 0 means result not yet available, 1 means result available
    return GL15.glGetQueryObjecti(id, GL15.GL_QUERY_RESULT_AVAILABLE) != 0;
}

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

License:Open Source License

@Override
public int getQueryResult(int id) {
    return GL15.glGetQueryObjecti(id, GL15.GL_QUERY_RESULT);
}

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

License:Open Source License

public static int glGetQueryObjecti(int a, int b) {
    return GL15.glGetQueryObjecti(a, b);
}