1 /* 2 * Copyright (c) 2002-2008 LWJGL Project 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: 8 * 9 * * Redistributions of source code must retain the above copyright 10 * notice, this list of conditions and the following disclaimer. 11 * 12 * * Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 16 * * Neither the name of 'LWJGL' nor the names of 17 * its contributors may be used to endorse or promote products derived 18 * from this software without specific prior written permission. 19 * 20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 22 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 23 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 24 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 25 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 26 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 27 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 28 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 29 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 */ 32 package org.lwjgl.opengl; 33 34 import org.lwjgl.util.generator.*; 35 import org.lwjgl.util.generator.Alternate; 36 import org.lwjgl.util.generator.opengl.GLenum; 37 import org.lwjgl.util.generator.opengl.GLreturn; 38 import org.lwjgl.util.generator.opengl.GLsizei; 39 import org.lwjgl.util.generator.opengl.GLuint; 40 41 import java.nio.IntBuffer; 42 43 public interface NV_occlusion_query { 44 45 int GL_OCCLUSION_TEST_HP = 0x8165; 46 int GL_OCCLUSION_TEST_RESULT_HP = 0x8166; 47 /* HP_occlusion_test */ 48 int GL_PIXEL_COUNTER_BITS_NV = 0x8864; 49 int GL_CURRENT_OCCLUSION_QUERY_ID_NV = 0x8865; 50 int GL_PIXEL_COUNT_NV = 0x8866; 51 int GL_PIXEL_COUNT_AVAILABLE_NV = 0x8867; 52 glGenOcclusionQueriesNV(@utoSizeR) @Lsizei int n, @OutParameter @GLuint IntBuffer piIDs)53 void glGenOcclusionQueriesNV(@AutoSize("piIDs") @GLsizei int n, @OutParameter @GLuint IntBuffer piIDs); 54 55 @Alternate("glGenOcclusionQueriesNV") 56 @GLreturn("piIDs") glGenOcclusionQueriesNV2(@onstantR) @Lsizei int n, @OutParameter @GLuint IntBuffer piIDs)57 void glGenOcclusionQueriesNV2(@Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer piIDs); 58 glDeleteOcclusionQueriesNV(@utoSizeR) @Lsizei int n, @Const @GLuint IntBuffer piIDs)59 void glDeleteOcclusionQueriesNV(@AutoSize("piIDs") @GLsizei int n, @Const @GLuint IntBuffer piIDs); 60 61 @Alternate("glDeleteOcclusionQueriesNV") glDeleteOcclusionQueriesNV(@onstantR) @Lsizei int n, @Constant(value = R, keepParam = true) int piID)62 void glDeleteOcclusionQueriesNV(@Constant("1") @GLsizei int n, @Constant(value = "APIUtil.getInt(caps, piID)", keepParam = true) int piID); 63 glIsOcclusionQueryNV(@Luint int id)64 boolean glIsOcclusionQueryNV(@GLuint int id); 65 glBeginOcclusionQueryNV(@Luint int id)66 void glBeginOcclusionQueryNV(@GLuint int id); 67 glEndOcclusionQueryNV()68 void glEndOcclusionQueryNV(); 69 70 @StripPostfix("params") glGetOcclusionQueryuivNV(@Luint int id, @GLenum int pname, @OutParameter @Check(R) @GLuint IntBuffer params)71 void glGetOcclusionQueryuivNV(@GLuint int id, @GLenum int pname, @OutParameter @Check("1") @GLuint IntBuffer params); 72 73 @Alternate("glGetOcclusionQueryuivNV") 74 @GLreturn("params") 75 @StripPostfix(value = "params", hasPostfix = false) glGetOcclusionQueryuivNV2(@Luint int id, @GLenum int pname, @OutParameter @GLuint IntBuffer params)76 void glGetOcclusionQueryuivNV2(@GLuint int id, @GLenum int pname, @OutParameter @GLuint IntBuffer params); 77 78 @StripPostfix("params") glGetOcclusionQueryivNV(@Luint int id, @GLenum int pname, @OutParameter @Check(R) IntBuffer params)79 void glGetOcclusionQueryivNV(@GLuint int id, @GLenum int pname, @OutParameter @Check("1") IntBuffer params); 80 81 @Alternate("glGetOcclusionQueryivNV") 82 @GLreturn("params") 83 @StripPostfix(value = "params", hasPostfix = false) glGetOcclusionQueryivNV2(@Luint int id, @GLenum int pname, @OutParameter IntBuffer params)84 void glGetOcclusionQueryivNV2(@GLuint int id, @GLenum int pname, @OutParameter IntBuffer params); 85 } 86