Added AMD_stencil_operation_extended.

Reverted @Check("1") from SubData BO functions.
This commit is contained in:
Ioannis Tsakpinis 2012-01-28 19:35:16 +00:00
parent 39aae7ff27
commit d523c3bc34
5 changed files with 68 additions and 7 deletions

View File

@ -0,0 +1,61 @@
/*
* Copyright (c) 2002-2012 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.opengl.GLenum;
import org.lwjgl.util.generator.opengl.GLuint;
public interface AMD_stencil_operation_extended {
/**
* Accepted by the <sfail>, <dpfail> and <dppass> parameters of StencilOp
* and StencilOpSeparate:
*/
int GL_SET_AMD = 0x874A,
GL_AND = 0x1501,
GL_XOR = 0x1506,
GL_OR = 0x1507,
GL_NOR = 0x1508,
GL_EQUIV = 0x1509,
GL_NAND = 0x150E,
GL_REPLACE_VALUE_AMD = 0x874B;
/**
* Accepted by the <param> parameter of GetIntegerv, GetFloatv, GetBooleanv
* GetDoublev and GetInteger64v:
*/
int GL_STENCIL_OP_VALUE_AMD = 0x874C,
GL_STENCIL_BACK_OP_VALUE_AMD = 0x874D;
void glStencilOpValueAMD(@GLenum int face, @GLuint int value);
}

View File

@ -92,7 +92,7 @@ public interface ARB_buffer_object {
@GLdouble Buffer data, @GLenum int usage);
void glBufferSubDataARB(@GLenum int target, @GLintptrARB long offset, @AutoSize("data") @GLsizeiptrARB long size,
@Check("1")
@Check
@Const
@GLbyte
@GLshort
@ -102,7 +102,7 @@ public interface ARB_buffer_object {
void glGetBufferSubDataARB(@GLenum int target, @GLintptrARB long offset, @AutoSize("data") @GLsizeiptrARB long size,
@OutParameter
@Check("1")
@Check
@GLbyte
@GLshort
@GLint

View File

@ -872,7 +872,7 @@ public interface EXT_direct_state_access {
@Dependent("OpenGL15")
void glNamedBufferSubDataEXT(@GLuint int buffer, @GLintptr long offset, @AutoSize("data") @GLsizeiptr long size,
@Check("1")
@Check
@Const
@GLbyte
@GLshort
@ -930,7 +930,7 @@ public interface EXT_direct_state_access {
@Dependent("OpenGL15")
void glGetNamedBufferSubDataEXT(@GLuint int buffer, @GLintptr long offset, @AutoSize("data") @GLsizeiptr long size,
@OutParameter
@Check("1")
@Check
@GLbyte
@GLshort
@GLint

View File

@ -118,7 +118,7 @@ public interface GL15 {
@GLdouble Buffer data, @GLenum int usage);
void glBufferSubData(@GLenum int target, @GLintptr long offset, @AutoSize("data") @GLsizeiptr long size,
@Check("1")
@Check
@Const
@GLbyte
@GLshort
@ -128,7 +128,7 @@ public interface GL15 {
void glGetBufferSubData(@GLenum int target, @GLintptr long offset, @AutoSize("data") @GLsizeiptr long size,
@OutParameter
@Check("1")
@Check
@GLbyte
@GLshort
@GLint

View File

@ -483,7 +483,7 @@ public interface GLES20 {
@Check("1") @Const @GLbyte @GLshort @GLint @GLfloat Buffer data, @GLenum int usage);
void glBufferSubData(@GLenum int target, @GLintptr long offset, @AutoSize("data") @GLsizeiptr long size,
@Check("1") @Const @GLbyte @GLshort @GLint @GLfloat Buffer data);
@Check @Const @GLbyte @GLshort @GLint @GLfloat Buffer data);
@GLenum
int glCheckFramebufferStatus(@GLenum int target);