|
From: <sp...@us...> - 2009-04-29 16:38:15
|
Revision: 3205
http://java-game-lib.svn.sourceforge.net/java-game-lib/?rev=3205&view=rev
Author: spasi
Date: 2009-04-29 16:38:04 +0000 (Wed, 29 Apr 2009)
Log Message:
-----------
Added support for NV_shader_buffer_load and NV_vertex_buffer_unified_memory.
Added Paths:
-----------
trunk/LWJGL/src/templates/org/lwjgl/opengl/NV_shader_buffer_load.java
trunk/LWJGL/src/templates/org/lwjgl/opengl/NV_vertex_buffer_unified_memory.java
Added: trunk/LWJGL/src/templates/org/lwjgl/opengl/NV_shader_buffer_load.java
===================================================================
--- trunk/LWJGL/src/templates/org/lwjgl/opengl/NV_shader_buffer_load.java (rev 0)
+++ trunk/LWJGL/src/templates/org/lwjgl/opengl/NV_shader_buffer_load.java 2009-04-29 16:38:04 UTC (rev 3205)
@@ -0,0 +1,86 @@
+/*
+ * Copyright (c) 2002-2008 LWJGL Project
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * * Neither the name of 'LWJGL' nor the names of
+ * its contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+package org.lwjgl.opengl;
+
+import org.lwjgl.util.generator.*;
+
+import java.nio.LongBuffer;
+
+public interface NV_shader_buffer_load {
+
+ /**
+ * Accepted by the <pname> parameter of GetBufferParameterui64vNV,
+ * GetNamedBufferParameterui64vNV:
+ */
+ int GL_BUFFER_GPU_ADDRESS_NV = 0x8F1D;
+
+ /** Returned by the <type> parameter of GetActiveUniform: */
+ int GL_GPU_ADDRESS_NV = 0x8F34;
+
+ /** Accepted by the <value> parameter of GetIntegerui64vNV: */
+ int GL_MAX_SHADER_BUFFER_ADDRESS_NV = 0x8F35;
+
+ void glMakeBufferResidentNV(@GLenum int target, @GLenum int access);
+
+ void glMakeBufferNonResidentNV(@GLenum int target);
+
+ boolean glIsBufferResidentNV(@GLenum int target);
+
+ void glNamedMakeBufferResidentNV(@GLuint int buffer, @GLenum int access);
+
+ void glNamedMakeBufferNonResidentNV(@GLuint int buffer);
+
+ boolean glIsNamedBufferResidentNV(@GLuint int buffer);
+
+ @StripPostfix("params")
+ void glGetBufferParameterui64vNV(@GLenum int target, @GLenum int pname, @OutParameter @Check("1") @GLuint64EXT LongBuffer params);
+
+ @StripPostfix("params")
+ void glGetNamedBufferParameterui64vNV(@GLuint int buffer, @GLenum int pname, @OutParameter @Check("1") @GLuint64EXT LongBuffer params);
+
+ @StripPostfix("result")
+ void glGetIntegerui64vNV(@GLenum int value, @OutParameter @Check("1") @GLuint64EXT LongBuffer result);
+
+ void glUniformui64NV(int location, @GLuint64EXT long value);
+
+ @StripPostfix("value")
+ void glUniformui64vNV(int location, @AutoSize("value") @GLsizei int count, @GLuint64EXT LongBuffer value);
+
+ @StripPostfix("params")
+ void glGetUniformui64vNV(@GLuint int program, int location, @OutParameter @Check("1") @GLuint64EXT LongBuffer params);
+
+ void glProgramUniformui64NV(@GLuint int program, int location, @GLuint64EXT long value);
+
+ @StripPostfix("value")
+ void glProgramUniformui64vNV(@GLuint int program, int location, @AutoSize("value") @GLsizei int count, @GLuint64EXT LongBuffer value);
+
+}
\ No newline at end of file
Added: trunk/LWJGL/src/templates/org/lwjgl/opengl/NV_vertex_buffer_unified_memory.java
===================================================================
--- trunk/LWJGL/src/templates/org/lwjgl/opengl/NV_vertex_buffer_unified_memory.java (rev 0)
+++ trunk/LWJGL/src/templates/org/lwjgl/opengl/NV_vertex_buffer_unified_memory.java 2009-04-29 16:38:04 UTC (rev 3205)
@@ -0,0 +1,106 @@
+/*
+ * Copyright (c) 2002-2008 LWJGL Project
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * * Neither the name of 'LWJGL' nor the names of
+ * its contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+package org.lwjgl.opengl;
+
+import org.lwjgl.util.generator.*;
+
+import java.nio.LongBuffer;
+
+public interface NV_vertex_buffer_unified_memory {
+
+ /**
+ * Accepted by the <cap> parameter of DisableClientState,
+ * EnableClientState, IsEnabled:
+ */
+ int GL_VERTEX_ATTRIB_ARRAY_UNIFIED_NV = 0x8F1E;
+ int GL_ELEMENT_ARRAY_UNIFIED_NV = 0x8F1F;
+
+ /**
+ * Accepted by the <pname> parameter of BufferAddressRangeNV
+ * and the <value> parameter of GetIntegerui64i_vNV:
+ */
+ int GL_VERTEX_ATTRIB_ARRAY_ADDRESS_NV = 0x8F20;
+ int GL_TEXTURE_COORD_ARRAY_ADDRESS_NV = 0x8F25;
+
+ /**
+ * Accepted by the <pname> parameter of BufferAddressRangeNV
+ * and the <value> parameter of GetIntegerui64vNV:
+ */
+ int GL_VERTEX_ARRAY_ADDRESS_NV = 0x8F21;
+ int GL_NORMAL_ARRAY_ADDRESS_NV = 0x8F22;
+ int GL_COLOR_ARRAY_ADDRESS_NV = 0x8F23;
+ int GL_INDEX_ARRAY_ADDRESS_NV = 0x8F24;
+ int GL_EDGE_FLAG_ARRAY_ADDRESS_NV = 0x8F26;
+ int GL_SECONDARY_COLOR_ARRAY_ADDRESS_NV = 0x8F27;
+ int GL_FOG_COORD_ARRAY_ADDRESS_NV = 0x8F28;
+ int GL_ELEMENT_ARRAY_ADDRESS_NV = 0x8F29;
+
+ /** Accepted by the <target> parameter of GetIntegeri_vNV: */
+ int GL_VERTEX_ATTRIB_ARRAY_LENGTH_NV = 0x8F2A;
+ int GL_TEXTURE_COORD_ARRAY_LENGTH_NV = 0x8F2F;
+
+ /** Accepted by the <value> parameter of GetIntegerv: */
+ int GL_VERTEX_ARRAY_LENGTH_NV = 0x8F2B;
+ int GL_NORMAL_ARRAY_LENGTH_NV = 0x8F2C;
+ int GL_COLOR_ARRAY_LENGTH_NV = 0x8F2D;
+ int GL_INDEX_ARRAY_LENGTH_NV = 0x8F2E;
+ int GL_EDGE_FLAG_ARRAY_LENGTH_NV = 0x8F30;
+ int GL_SECONDARY_COLOR_ARRAY_LENGTH_NV = 0x8F31;
+ int GL_FOG_COORD_ARRAY_LENGTH_NV = 0x8F32;
+ int GL_ELEMENT_ARRAY_LENGTH_NV = 0x8F33;
+
+ void glBufferAddressRangeNV(@GLenum int pname, @GLuint int index, @GLuint64EXT long address, @GLsizeiptr long length);
+
+ void glVertexFormatNV(int size, @GLenum int type, @GLsizei int stride);
+
+ void glNormalFormatNV(@GLenum int type, @GLsizei int stride);
+
+ void glColorFormatNV(int size, @GLenum int type, @GLsizei int stride);
+
+ void glIndexFormatNV(@GLenum int type, @GLsizei int stride);
+
+ void glTexCoordFormatNV(int size, @GLenum int type, @GLsizei int stride);
+
+ void glEdgeFlagFormatNV(@GLsizei int stride);
+
+ void glSecondaryColorFormatNV(int size, @GLenum int type, @GLsizei int stride);
+
+ void glFogCoordFormatNV(@GLenum int type, @GLsizei int stride);
+
+ void glVertexAttribFormatNV(@GLuint int index, int size, @GLenum int type, boolean normalized, @GLsizei int stride);
+
+ void glVertexAttribIFormatNV(@GLuint int index, int size, @GLenum int type, @GLsizei int stride);
+
+ @StripPostfix("result")
+ void glGetIntegerui64i_vNV(@GLenum int value, @GLuint int index, @OutParameter @Check("1") @GLuint64EXT LongBuffer result);
+
+}
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|