Update of /cvsroot/java-game-lib/LWJGL/src/native/common/ext In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6954/src/native/common/ext Modified Files: Makefile.am Added Files: org_lwjgl_opengl_EXTBlendEquationSeparate.c org_lwjgl_opengl_EXTBlendFuncSeparate.c org_lwjgl_opengl_EXTCompiledVertexArray.c org_lwjgl_opengl_EXTDepthBoundsTest.c org_lwjgl_opengl_EXTDrawRangeElements.c org_lwjgl_opengl_EXTFogCoord.c org_lwjgl_opengl_EXTMultiDrawArrays.c org_lwjgl_opengl_EXTPointParameters.c org_lwjgl_opengl_EXTSecondaryColor.c org_lwjgl_opengl_EXTStencilTwoSide.c org_lwjgl_opengl_EXTVertexShader.c org_lwjgl_opengl_EXTVertexWeighting.c Removed Files: org_lwjgl_opengl_EXTBlendEquationSeparate.cpp org_lwjgl_opengl_EXTBlendFuncSeparate.cpp org_lwjgl_opengl_EXTCompiledVertexArray.cpp org_lwjgl_opengl_EXTDepthBoundsTest.cpp org_lwjgl_opengl_EXTDrawRangeElements.cpp org_lwjgl_opengl_EXTFogCoord.cpp org_lwjgl_opengl_EXTMultiDrawArrays.cpp org_lwjgl_opengl_EXTPointParameters.cpp org_lwjgl_opengl_EXTSecondaryColor.cpp org_lwjgl_opengl_EXTStencilTwoSide.cpp org_lwjgl_opengl_EXTVertexShader.cpp org_lwjgl_opengl_EXTVertexWeighting.cpp Log Message: Converted native code from C++ (.cpp files) to C (.c files), thus avoiding an annoying dependency on the standard C++ library on Linux. We weren't using any particular C++ features anyway. --- org_lwjgl_opengl_EXTStencilTwoSide.cpp DELETED --- --- org_lwjgl_opengl_EXTBlendFuncSeparate.cpp DELETED --- --- org_lwjgl_opengl_EXTMultiDrawArrays.cpp DELETED --- --- NEW FILE: org_lwjgl_opengl_EXTVertexShader.c --- /* * Copyright (c) 2002-2004 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. */ // ---------------------------------- // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.EXTVertexShader // ---------------------------------- #include "extgl.h" #include "common_tools.h" typedef void (APIENTRY * glBeginVertexShaderEXTPROC) (); typedef void (APIENTRY * glEndVertexShaderEXTPROC) (); typedef void (APIENTRY * glBindVertexShaderEXTPROC) (GLuint id); typedef GLuint (APIENTRY * glGenVertexShadersEXTPROC) (GLuint range); typedef void (APIENTRY * glDeleteVertexShaderEXTPROC) (GLuint id); typedef void (APIENTRY * glShaderOp1EXTPROC) (GLenum op, GLuint res, GLuint arg1); typedef void (APIENTRY * glShaderOp2EXTPROC) (GLenum op, GLuint res, GLuint arg1, GLuint arg2); typedef void (APIENTRY * glShaderOp3EXTPROC) (GLenum op, GLuint res, GLuint arg1, GLuint arg2, GLuint arg3); typedef void (APIENTRY * glSwizzleEXTPROC) (GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW); typedef void (APIENTRY * glWriteMaskEXTPROC) (GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW); typedef void (APIENTRY * glInsertComponentEXTPROC) (GLuint res, GLuint src, GLuint num); typedef void (APIENTRY * glExtractComponentEXTPROC) (GLuint res, GLuint src, GLuint num); typedef GLuint (APIENTRY * glGenSymbolsEXTPROC) (GLenum dataType, GLenum storageType, GLenum range, GLuint components); typedef void (APIENTRY * glSetInvariantEXTPROC) (GLuint id, GLenum type, GLvoid *addr); typedef void (APIENTRY * glSetLocalConstantEXTPROC) (GLuint id, GLenum type, GLvoid *addr); typedef void (APIENTRY * glVariantbvEXTPROC) (GLuint id, GLbyte *addr); typedef void (APIENTRY * glVariantsvEXTPROC) (GLuint id, GLshort *addr); typedef void (APIENTRY * glVariantivEXTPROC) (GLuint id, GLint *addr); typedef void (APIENTRY * glVariantfvEXTPROC) (GLuint id, GLfloat *addr); typedef void (APIENTRY * glVariantubvEXTPROC) (GLuint id, GLubyte *addr); typedef void (APIENTRY * glVariantusvEXTPROC) (GLuint id, GLushort *addr); typedef void (APIENTRY * glVariantuivEXTPROC) (GLuint id, GLuint *addr); typedef void (APIENTRY * glVariantPointerEXTPROC) (GLuint id, GLenum type, GLuint stride, GLvoid *addr); typedef void (APIENTRY * glEnableVariantClientStateEXTPROC) (GLuint id); typedef void (APIENTRY * glDisableVariantClientStateEXTPROC) (GLuint id); typedef GLuint (APIENTRY * glBindLightParameterEXTPROC) (GLenum light, GLenum value); typedef GLuint (APIENTRY * glBindMaterialParameterEXTPROC) (GLenum face, GLenum value); typedef GLuint (APIENTRY * glBindTexGenParameterEXTPROC) (GLenum unit, GLenum coord, GLenum value); typedef GLuint (APIENTRY * glBindTextureUnitParameterEXTPROC) (GLenum unit, GLenum value); typedef GLuint (APIENTRY * glBindParameterEXTPROC) (GLenum value); typedef GLboolean (APIENTRY * glIsVariantEnabledEXTPROC) (GLuint id, GLenum cap); typedef void (APIENTRY * glGetVariantBooleanvEXTPROC) (GLuint id, GLenum value, GLboolean *data); typedef void (APIENTRY * glGetVariantIntegervEXTPROC) (GLuint id, GLenum value, GLint *data); typedef void (APIENTRY * glGetVariantFloatvEXTPROC) (GLuint id, GLenum value, GLfloat *data); typedef void (APIENTRY * glGetVariantPointervEXTPROC) (GLuint id, GLenum value, GLvoid **data); typedef void (APIENTRY * glGetInvariantBooleanvEXTPROC) (GLuint id, GLenum value, GLboolean *data); typedef void (APIENTRY * glGetInvariantIntegervEXTPROC) (GLuint id, GLenum value, GLint *data); typedef void (APIENTRY * glGetInvariantFloatvEXTPROC) (GLuint id, GLenum value, GLfloat *data); typedef void (APIENTRY * glGetLocalConstantBooleanvEXTPROC) (GLuint id, GLenum value, GLboolean *data); typedef void (APIENTRY * glGetLocalConstantIntegervEXTPROC) (GLuint id, GLenum value, GLint *data); typedef void (APIENTRY * glGetLocalConstantFloatvEXTPROC) (GLuint id, GLenum value, GLfloat *data); static glBeginVertexShaderEXTPROC glBeginVertexShaderEXT; static glEndVertexShaderEXTPROC glEndVertexShaderEXT; static glBindVertexShaderEXTPROC glBindVertexShaderEXT; static glGenVertexShadersEXTPROC glGenVertexShadersEXT; static glDeleteVertexShaderEXTPROC glDeleteVertexShaderEXT; static glShaderOp1EXTPROC glShaderOp1EXT; static glShaderOp2EXTPROC glShaderOp2EXT; static glShaderOp3EXTPROC glShaderOp3EXT; static glSwizzleEXTPROC glSwizzleEXT; static glWriteMaskEXTPROC glWriteMaskEXT; static glInsertComponentEXTPROC glInsertComponentEXT; static glExtractComponentEXTPROC glExtractComponentEXT; static glGenSymbolsEXTPROC glGenSymbolsEXT; static glSetInvariantEXTPROC glSetInvariantEXT; static glSetLocalConstantEXTPROC glSetLocalConstantEXT; static glVariantbvEXTPROC glVariantbvEXT; static glVariantsvEXTPROC glVariantsvEXT; static glVariantivEXTPROC glVariantivEXT; static glVariantfvEXTPROC glVariantfvEXT; static glVariantubvEXTPROC glVariantubvEXT; static glVariantusvEXTPROC glVariantusvEXT; static glVariantuivEXTPROC glVariantuivEXT; static glVariantPointerEXTPROC glVariantPointerEXT; static glEnableVariantClientStateEXTPROC glEnableVariantClientStateEXT; static glDisableVariantClientStateEXTPROC glDisableVariantClientStateEXT; static glBindLightParameterEXTPROC glBindLightParameterEXT; static glBindMaterialParameterEXTPROC glBindMaterialParameterEXT; static glBindTexGenParameterEXTPROC glBindTexGenParameterEXT; static glBindTextureUnitParameterEXTPROC glBindTextureUnitParameterEXT; static glBindParameterEXTPROC glBindParameterEXT; static glIsVariantEnabledEXTPROC glIsVariantEnabledEXT; static glGetVariantBooleanvEXTPROC glGetVariantBooleanvEXT; static glGetVariantIntegervEXTPROC glGetVariantIntegervEXT; static glGetVariantFloatvEXTPROC glGetVariantFloatvEXT; static glGetVariantPointervEXTPROC glGetVariantPointervEXT; static glGetInvariantBooleanvEXTPROC glGetInvariantBooleanvEXT; static glGetInvariantIntegervEXTPROC glGetInvariantIntegervEXT; static glGetInvariantFloatvEXTPROC glGetInvariantFloatvEXT; static glGetLocalConstantBooleanvEXTPROC glGetLocalConstantBooleanvEXT; static glGetLocalConstantIntegervEXTPROC glGetLocalConstantIntegervEXT; static glGetLocalConstantFloatvEXTPROC glGetLocalConstantFloatvEXT; /* * Class: org.lwjgl.opengl.EXTVertexShader * Method: glBeginVertexShaderEXT */ static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glBeginVertexShaderEXT (JNIEnv * env, jclass clazz) { glBeginVertexShaderEXT(); } /* * Class: org.lwjgl.opengl.EXTVertexShader * Method: glEndVertexShaderEXT */ static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glEndVertexShaderEXT (JNIEnv * env, jclass clazz) { glEndVertexShaderEXT(); } /* * Class: org.lwjgl.opengl.EXTVertexShader * Method: glBindVertexShaderEXT */ static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glBindVertexShaderEXT (JNIEnv * env, jclass clazz, jint id) { glBindVertexShaderEXT(id); } /* * Class: org.lwjgl.opengl.EXTVertexShader * Method: glGenVertexShadersEXT */ static jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glGenVertexShadersEXT (JNIEnv * env, jclass clazz, jint range) { GLuint result = glGenVertexShadersEXT(range); return result; } /* * Class: org.lwjgl.opengl.EXTVertexShader * Method: glDeleteVertexShaderEXT */ static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glDeleteVertexShaderEXT (JNIEnv * env, jclass clazz, jint id) { glDeleteVertexShaderEXT(id); } /* * Class: org.lwjgl.opengl.EXTVertexShader * Method: glShaderOp1EXT */ static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glShaderOp1EXT (JNIEnv * env, jclass clazz, jint op, jint res, jint arg1) { glShaderOp1EXT(op, res, arg1); } /* * Class: org.lwjgl.opengl.EXTVertexShader * Method: glShaderOp2EXT */ static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glShaderOp2EXT (JNIEnv * env, jclass clazz, jint op, jint res, jint arg1, jint arg2) { glShaderOp2EXT(op, res, arg1, arg2); } /* * Class: org.lwjgl.opengl.EXTVertexShader * Method: glShaderOp3EXT */ static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glShaderOp3EXT (JNIEnv * env, jclass clazz, jint op, jint res, jint arg1, jint arg2, jint arg3) { glShaderOp3EXT(op, res, arg1, arg2, arg3); } /* * Class: org.lwjgl.opengl.EXTVertexShader * Method: glSwizzleEXT */ static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glSwizzleEXT (JNIEnv * env, jclass clazz, jint res, jint in, jint outX, jint outY, jint outZ, jint outW) { glSwizzleEXT(res, in, outX, outY, outZ, outW); } /* * Class: org.lwjgl.opengl.EXTVertexShader * Method: glWriteMaskEXT */ static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glWriteMaskEXT (JNIEnv * env, jclass clazz, jint res, jint in, jint outX, jint outY, jint outZ, jint outW) { glWriteMaskEXT(res, in, outX, outY, outZ, outW); } /* * Class: org.lwjgl.opengl.EXTVertexShader * Method: glInsertComponentEXT */ static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glInsertComponentEXT (JNIEnv * env, jclass clazz, jint res, jint src, jint num) { glInsertComponentEXT(res, src, num); } /* * Class: org.lwjgl.opengl.EXTVertexShader * Method: glExtractComponentEXT */ static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glExtractComponentEXT (JNIEnv * env, jclass clazz, jint res, jint src, jint num) { glExtractComponentEXT(res, src, num); } /* * Class: org.lwjgl.opengl.EXTVertexShader * Method: glGenSymbolsEXT */ static jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glGenSymbolsEXT (JNIEnv * env, jclass clazz, jint dataType, jint storageType, jint range, jint components) { GLuint result = glGenSymbolsEXT(dataType, storageType, range, components); return result; } /* * Class: org.lwjgl.opengl.EXTVertexShader * Method: nglSetInvariantEXT */ static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglSetInvariantEXT (JNIEnv * env, jclass clazz, jint id, jint type, jobject pAddr, jint pAddr_offset) { GLvoid *pAddr_ptr = (GLvoid *)((GLubyte *)(*env)->GetDirectBufferAddress(env, pAddr) + pAddr_offset); glSetInvariantEXT(id, type, pAddr_ptr); } /* * Class: org.lwjgl.opengl.EXTVertexShader * Method: nglSetLocalConstantEXT */ static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglSetLocalConstantEXT (JNIEnv * env, jclass clazz, jint id, jint type, jobject pAddr, jint pAddr_offset) { GLvoid *pAddr_ptr = (GLvoid *)((GLubyte *)(*env)->GetDirectBufferAddress(env, pAddr) + pAddr_offset); glSetLocalConstantEXT(id, type, pAddr_ptr); } /* * Class: org.lwjgl.opengl.EXTVertexShader * Method: nglVariantbvEXT */ static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantbvEXT (JNIEnv * env, jclass clazz, jint id, jobject pAddr, jint pAddr_offset) { GLbyte *pAddr_ptr = (GLbyte *)(*env)->GetDirectBufferAddress(env, pAddr) + pAddr_offset; glVariantbvEXT(id, pAddr_ptr); } /* * Class: org.lwjgl.opengl.EXTVertexShader * Method: nglVariantsvEXT */ static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantsvEXT (JNIEnv * env, jclass clazz, jint id, jobject psAddr, jint psAddr_offset) { GLshort *psAddr_ptr = (GLshort *)(*env)->GetDirectBufferAddress(env, psAddr) + psAddr_offset; glVariantsvEXT(id, psAddr_ptr); } /* * Class: org.lwjgl.opengl.EXTVertexShader * Method: nglVariantfvEXT */ static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantfvEXT (JNIEnv * env, jclass clazz, jint id, jobject pfAddr, jint pfAddr_offset) { GLfloat *pfAddr_ptr = (GLfloat *)(*env)->GetDirectBufferAddress(env, pfAddr) + pfAddr_offset; glVariantfvEXT(id, pfAddr_ptr); } /* * Class: org.lwjgl.opengl.EXTVertexShader * Method: nglVariantivEXT */ static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantivEXT (JNIEnv * env, jclass clazz, jint id, jobject piAddr, jint piAddr_offset) { GLint *piAddr_ptr = (GLint *)(*env)->GetDirectBufferAddress(env, piAddr) + piAddr_offset; glVariantivEXT(id, piAddr_ptr); } /* * Class: org.lwjgl.opengl.EXTVertexShader * Method: nglVariantubvEXT */ static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantubvEXT (JNIEnv * env, jclass clazz, jint id, jobject pAddr, jint pAddr_offset) { GLubyte *pAddr_ptr = (GLubyte *)(*env)->GetDirectBufferAddress(env, pAddr) + pAddr_offset; glVariantubvEXT(id, pAddr_ptr); } /* * Class: org.lwjgl.opengl.EXTVertexShader * Method: nglVariantusvEXT */ static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantusvEXT (JNIEnv * env, jclass clazz, jint id, jobject psAddr, jint psAddr_offset) { GLushort *psAddr_ptr = (GLushort *)(*env)->GetDirectBufferAddress(env, psAddr) + psAddr_offset; glVariantusvEXT(id, psAddr_ptr); } /* * Class: org.lwjgl.opengl.EXTVertexShader * Method: nglVariantuivEXT */ static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantuivEXT (JNIEnv * env, jclass clazz, jint id, jobject piAddr, jint piAddr_offset) { GLuint *piAddr_ptr = (GLuint *)(*env)->GetDirectBufferAddress(env, piAddr) + piAddr_offset; glVariantuivEXT(id, piAddr_ptr); } /* * Class: org.lwjgl.opengl.EXTVertexShader * Method: nglVariantPointerEXT */ static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantPointerEXT (JNIEnv * env, jclass clazz, jint id, jint type, jint stride, jobject pAddr, jint pAddr_offset) { GLvoid *pAddr_ptr = (GLvoid *)((GLubyte *)(*env)->GetDirectBufferAddress(env, pAddr) + pAddr_offset); glVariantPointerEXT(id, type, stride, pAddr_ptr); } /* * Class: org.lwjgl.opengl.EXTVertexShader * Method: nglVariantPointerEXTVBO */ static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantPointerEXTVBO (JNIEnv * env, jclass clazz, jint id, jint type, jint stride, jint buffer_offset) { glVariantPointerEXT(id, type, stride, (GLvoid *)buffer_offset); } /* * Class: org.lwjgl.opengl.EXTVertexShader * Method: glEnableVariantClientStateEXT */ static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glEnableVariantClientStateEXT (JNIEnv * env, jclass clazz, jint id) { glEnableVariantClientStateEXT(id); } /* * Class: org.lwjgl.opengl.EXTVertexShader * Method: glDisableVariantClientStateEXT */ static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glDisableVariantClientStateEXT (JNIEnv * env, jclass clazz, jint id) { glDisableVariantClientStateEXT(id); } /* * Class: org.lwjgl.opengl.EXTVertexShader * Method: glBindLightParameterEXT */ static jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glBindLightParameterEXT (JNIEnv * env, jclass clazz, jint light, jint value) { GLuint result = glBindLightParameterEXT(light, value); return result; } /* * Class: org.lwjgl.opengl.EXTVertexShader * Method: glBindMaterialParameterEXT */ static jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glBindMaterialParameterEXT (JNIEnv * env, jclass clazz, jint face, jint value) { GLuint result = glBindMaterialParameterEXT(face, value); return result; } /* * Class: org.lwjgl.opengl.EXTVertexShader * Method: glBindTexGenParameterEXT */ static jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glBindTexGenParameterEXT (JNIEnv * env, jclass clazz, jint unit, jint coord, jint value) { GLuint result = glBindTexGenParameterEXT(unit, coord, value); return result; } /* * Class: org.lwjgl.opengl.EXTVertexShader * Method: glBindTextureUnitParameterEXT */ static jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glBindTextureUnitParameterEXT (JNIEnv * env, jclass clazz, jint unit, jint value) { GLuint result = glBindTextureUnitParameterEXT(unit, value); return result; } /* * Class: org.lwjgl.opengl.EXTVertexShader * Method: glBindParameterEXT */ static jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glBindParameterEXT (JNIEnv * env, jclass clazz, jint value) { GLuint result = glBindParameterEXT(value); return result; } /* * Class: org.lwjgl.opengl.EXTVertexShader * Method: glIsVariantEnabledEXT */ static jboolean JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glIsVariantEnabledEXT (JNIEnv * env, jclass clazz, jint id, jint cap) { GLboolean result = glIsVariantEnabledEXT(id, cap); return result; } /* * Class: org.lwjgl.opengl.EXTVertexShader * Method: nglGetVariantBooleanvEXT */ static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetVariantBooleanvEXT (JNIEnv * env, jclass clazz, jint id, jint value, jobject pbData, jint pbData_offset) { GLubyte *pbData_ptr = (GLubyte *)(*env)->GetDirectBufferAddress(env, pbData) + pbData_offset; glGetVariantBooleanvEXT(id, value, pbData_ptr); } /* * Class: org.lwjgl.opengl.EXTVertexShader * Method: nglGetVariantIntegervEXT */ static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetVariantIntegervEXT (JNIEnv * env, jclass clazz, jint id, jint value, jobject piData, jint piData_offset) { GLint *piData_ptr = (GLint *)(*env)->GetDirectBufferAddress(env, piData) + piData_offset; glGetVariantIntegervEXT(id, value, piData_ptr); } /* * Class: org.lwjgl.opengl.EXTVertexShader * Method: nglGetVariantFloatvEXT */ static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetVariantFloatvEXT (JNIEnv * env, jclass clazz, jint id, jint value, jobject pfData, jint pfData_offset) { GLfloat *pfData_ptr = (GLfloat *)(*env)->GetDirectBufferAddress(env, pfData) + pfData_offset; glGetVariantFloatvEXT(id, value, pfData_ptr); } /* * Class: org.lwjgl.opengl.EXTVertexShader * Method: glGetVariantPointerEXT */ static jobject JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glGetVariantPointerEXT (JNIEnv * env, jclass clazz, jint id, jint value, jint size) { void *address; glGetVariantPointervEXT((GLuint)id, (GLuint)value, &address); return safeNewBuffer(env, address, size); } /* * Class: org.lwjgl.opengl.EXTVertexShader * Method: nglGetInvariantBooleanvEXT */ static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetInvariantBooleanvEXT (JNIEnv * env, jclass clazz, jint id, jint value, jobject pbData, jint pbData_offset) { GLubyte *pbData_ptr = (GLubyte *)(*env)->GetDirectBufferAddress(env, pbData) + pbData_offset; glGetInvariantBooleanvEXT(id, value, pbData_ptr); } /* * Class: org.lwjgl.opengl.EXTVertexShader * Method: nglGetInvariantIntegervEXT */ static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetInvariantIntegervEXT (JNIEnv * env, jclass clazz, jint id, jint value, jobject piData, jint piData_offset) { GLint *piData_ptr = (GLint *)(*env)->GetDirectBufferAddress(env, piData) + piData_offset; glGetInvariantIntegervEXT(id, value, piData_ptr); } /* * Class: org.lwjgl.opengl.EXTVertexShader * Method: nglGetInvariantFloatvEXT */ static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetInvariantFloatvEXT (JNIEnv * env, jclass clazz, jint id, jint value, jobject pfData, jint pfData_offset) { GLfloat *pfData_ptr = (GLfloat *)(*env)->GetDirectBufferAddress(env, pfData) + pfData_offset; glGetInvariantFloatvEXT(id, value, pfData_ptr); } /* * Class: org.lwjgl.opengl.EXTVertexShader * Method: nglGetLocalConstantBooleanvEXT */ static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetLocalConstantBooleanvEXT (JNIEnv * env, jclass clazz, jint id, jint value, jobject pbData, jint pbData_offset) { GLubyte *pbData_ptr = (GLubyte *)(*env)->GetDirectBufferAddress(env, pbData) + pbData_offset; glGetLocalConstantBooleanvEXT(id, value, pbData_ptr); } /* * Class: org.lwjgl.opengl.EXTVertexShader * Method: nglGetLocalConstantIntegervEXT */ static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetLocalConstantIntegervEXT (JNIEnv * env, jclass clazz, jint id, jint value, jobject piData, jint piData_offset) { GLint *piData_ptr = (GLint *)(*env)->GetDirectBufferAddress(env, piData) + piData_offset; glGetLocalConstantIntegervEXT(id, value, piData_ptr); } /* * Class: org.lwjgl.opengl.EXTVertexShader * Method: nglGetLocalConstantFloatvEXT */ static void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetLocalConstantFloatvEXT (JNIEnv * env, jclass clazz, jint id, jint value, jobject pfData, jint pfData_offset) { GLfloat *pfData_ptr = (GLfloat *)(*env)->GetDirectBufferAddress(env, pfData) + pfData_offset; glGetLocalConstantFloatvEXT(id, value, pfData_ptr); } #ifdef __cplusplus extern "C" { #endif JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_initNativeStubs(JNIEnv *env, jclass clazz) { JavaMethodAndExtFunction functions[] = { {"glBeginVertexShaderEXT", "()V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glBeginVertexShaderEXT, "glBeginVertexShaderEXT", (void*)&glBeginVertexShaderEXT}, {"glEndVertexShaderEXT", "()V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glEndVertexShaderEXT, "glEndVertexShaderEXT", (void*)&glEndVertexShaderEXT}, {"glBindVertexShaderEXT", "(I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glBindVertexShaderEXT, "glBindVertexShaderEXT", (void*)&glBindVertexShaderEXT}, {"glGenVertexShadersEXT", "(I)I", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glGenVertexShadersEXT, "glGenVertexShadersEXT", (void*)&glGenVertexShadersEXT}, {"glDeleteVertexShaderEXT", "(I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glDeleteVertexShaderEXT, "glDeleteVertexShaderEXT", (void*)&glDeleteVertexShaderEXT}, {"glShaderOp1EXT", "(III)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glShaderOp1EXT, "glShaderOp1EXT", (void*)&glShaderOp1EXT}, {"glShaderOp2EXT", "(IIII)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glShaderOp2EXT, "glShaderOp2EXT", (void*)&glShaderOp2EXT}, {"glShaderOp3EXT", "(IIIII)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glShaderOp3EXT, "glShaderOp3EXT", (void*)&glShaderOp3EXT}, {"glSwizzleEXT", "(IIIIII)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glSwizzleEXT, "glSwizzleEXT", (void*)&glSwizzleEXT}, {"glWriteMaskEXT", "(IIIIII)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glWriteMaskEXT, "glWriteMaskEXT", (void*)&glWriteMaskEXT}, {"glInsertComponentEXT", "(III)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glInsertComponentEXT, "glInsertComponentEXT", (void*)&glInsertComponentEXT}, {"glExtractComponentEXT", "(III)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glExtractComponentEXT, "glExtractComponentEXT", (void*)&glExtractComponentEXT}, {"glGenSymbolsEXT", "(IIII)I", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glGenSymbolsEXT, "glGenSymbolsEXT", (void*)&glGenSymbolsEXT}, {"nglSetInvariantEXT", "(IILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglSetInvariantEXT, "glSetInvariantEXT", (void*)&glSetInvariantEXT}, {"nglSetLocalConstantEXT", "(IILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglSetLocalConstantEXT, "glSetLocalConstantEXT", (void*)&glSetLocalConstantEXT}, {"nglVariantbvEXT", "(ILjava/nio/ByteBuffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglVariantbvEXT, "glVariantbvEXT", (void*)&glVariantbvEXT}, {"nglVariantsvEXT", "(ILjava/nio/ShortBuffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglVariantsvEXT, "glVariantsvEXT", (void*)&glVariantsvEXT}, {"nglVariantfvEXT", "(ILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglVariantfvEXT, "glVariantfvEXT", (void*)&glVariantfvEXT}, {"nglVariantivEXT", "(ILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglVariantivEXT, "glVariantivEXT", (void*)&glVariantivEXT}, {"nglVariantubvEXT", "(ILjava/nio/ByteBuffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglVariantubvEXT, "glVariantubvEXT", (void*)&glVariantubvEXT}, {"nglVariantusvEXT", "(ILjava/nio/ShortBuffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglVariantusvEXT, "glVariantusvEXT", (void*)&glVariantusvEXT}, {"nglVariantuivEXT", "(ILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglVariantuivEXT, "glVariantuivEXT", (void*)&glVariantuivEXT}, {"nglVariantPointerEXT", "(IIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglVariantPointerEXT, "glVariantPointerEXT", (void*)&glVariantPointerEXT}, {"nglVariantPointerEXTVBO", "(IIII)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglVariantPointerEXTVBO, NULL, NULL}, {"glEnableVariantClientStateEXT", "(I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glEnableVariantClientStateEXT, "glEnableVariantClientStateEXT", (void*)&glEnableVariantClientStateEXT}, {"glDisableVariantClientStateEXT", "(I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glDisableVariantClientStateEXT, "glDisableVariantClientStateEXT", (void*)&glDisableVariantClientStateEXT}, {"glBindLightParameterEXT", "(II)I", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glBindLightParameterEXT, "glBindLightParameterEXT", (void*)&glBindLightParameterEXT}, {"glBindMaterialParameterEXT", "(II)I", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glBindMaterialParameterEXT, "glBindMaterialParameterEXT", (void*)&glBindMaterialParameterEXT}, {"glBindTexGenParameterEXT", "(III)I", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glBindTexGenParameterEXT, "glBindTexGenParameterEXT", (void*)&glBindTexGenParameterEXT}, {"glBindTextureUnitParameterEXT", "(II)I", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glBindTextureUnitParameterEXT, "glBindTextureUnitParameterEXT", (void*)&glBindTextureUnitParameterEXT}, {"glBindParameterEXT", "(I)I", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glBindParameterEXT, "glBindParameterEXT", (void*)&glBindParameterEXT}, {"glIsVariantEnabledEXT", "(II)Z", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glIsVariantEnabledEXT, "glIsVariantEnabledEXT", (void*)&glIsVariantEnabledEXT}, {"nglGetVariantBooleanvEXT", "(IILjava/nio/ByteBuffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglGetVariantBooleanvEXT, "glGetVariantBooleanvEXT", (void*)&glGetVariantBooleanvEXT}, {"nglGetVariantIntegervEXT", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglGetVariantIntegervEXT, "glGetVariantIntegervEXT", (void*)&glGetVariantIntegervEXT}, {"nglGetVariantFloatvEXT", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglGetVariantFloatvEXT, "glGetVariantFloatvEXT", (void*)&glGetVariantFloatvEXT}, {"glGetVariantPointerEXT", "(III)Ljava/nio/ByteBuffer;", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glGetVariantPointerEXT, "glGetVariantPointervEXT", (void*)&glGetVariantPointervEXT}, {"nglGetInvariantBooleanvEXT", "(IILjava/nio/ByteBuffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglGetInvariantBooleanvEXT, "glGetInvariantBooleanvEXT", (void*)&glGetInvariantBooleanvEXT}, {"nglGetInvariantIntegervEXT", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglGetInvariantIntegervEXT, "glGetInvariantIntegervEXT", (void*)&glGetInvariantIntegervEXT}, {"nglGetInvariantFloatvEXT", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglGetInvariantFloatvEXT, "glGetInvariantFloatvEXT", (void*)&glGetInvariantFloatvEXT}, {"nglGetLocalConstantBooleanvEXT", "(IILjava/nio/ByteBuffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglGetLocalConstantBooleanvEXT, "glGetLocalConstantBooleanvEXT", (void*)&glGetLocalConstantBooleanvEXT}, {"nglGetLocalConstantIntegervEXT", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglGetLocalConstantIntegervEXT, "glGetLocalConstantIntegervEXT", (void*)&glGetLocalConstantIntegervEXT}, {"nglGetLocalConstantFloatvEXT", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglGetLocalConstantFloatvEXT, "glGetLocalConstantFloatvEXT", (void*)&glGetLocalConstantFloatvEXT} }; int num_functions = NUMFUNCTIONS(functions); extgl_InitializeClass(env, clazz, num_functions, functions); } #ifdef __cplusplus } #endif --- org_lwjgl_opengl_EXTVertexShader.cpp DELETED --- --- NEW FILE: org_lwjgl_opengl_EXTBlendEquationSeparate.c --- /* * Copyright (c) 2002-2004 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. */ // ---------------------------------- // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.EXTBlendEquationSeparate // ---------------------------------- #include "extgl.h" typedef void (APIENTRY * glBlendEquationSeparateEXTPROC) (GLenum modeRGB, GLenum modeAlpha); static glBlendEquationSeparateEXTPROC glBlendEquationSeparateEXT; /* * Class: org.lwjgl.opengl.EXTBlendEquationSeparate * Method: glBlendEquationSeparateEXT */ static void JNICALL Java_org_lwjgl_opengl_EXTBlendEquationSeparate_glBlendEquationSeparateEXT (JNIEnv * env, jclass clazz, jint modeRGB, jint modeAlpha) { glBlendEquationSeparateEXT(modeRGB, modeAlpha); } #ifdef __cplusplus extern "C" { #endif JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTBlendEquationSeparate_initNativeStubs(JNIEnv *env, jclass clazz) { JavaMethodAndExtFunction functions[] = { {"glBlendEquationSeparateEXT", "(II)V", (void*)&Java_org_lwjgl_opengl_EXTBlendEquationSeparate_glBlendEquationSeparateEXT, "glBlendEquationSeparateEXT", (void*)&glBlendEquationSeparateEXT} }; int num_functions = NUMFUNCTIONS(functions); extgl_InitializeClass(env, clazz, num_functions, functions); } #ifdef __cplusplus } #endif --- NEW FILE: org_lwjgl_opengl_EXTSecondaryColor.c --- /* * Copyright (c) 2002-2004 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. */ // ---------------------------------- // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.EXTSecondaryColor // ---------------------------------- #include "extgl.h" typedef void (APIENTRY * glSecondaryColor3bEXTPROC) (GLbyte red, GLbyte green, GLbyte blue); typedef void (APIENTRY * glSecondaryColor3fEXTPROC) (GLfloat red, GLfloat green, GLfloat blue); typedef void (APIENTRY * glSecondaryColor3ubEXTPROC) (GLubyte red, GLubyte green, GLubyte blue); typedef void (APIENTRY * glSecondaryColorPointerEXTPROC) (GLint size, GLenum type, GLsizei stride, GLvoid *pointer); static glSecondaryColor3bEXTPROC glSecondaryColor3bEXT; static glSecondaryColor3fEXTPROC glSecondaryColor3fEXT; static glSecondaryColor3ubEXTPROC glSecondaryColor3ubEXT; static glSecondaryColorPointerEXTPROC glSecondaryColorPointerEXT; /* * Class: org.lwjgl.opengl.EXTSecondaryColor * Method: glSecondaryColor3bEXT */ static void JNICALL Java_org_lwjgl_opengl_EXTSecondaryColor_glSecondaryColor3bEXT (JNIEnv * env, jclass clazz, jbyte red, jbyte green, jbyte blue) { glSecondaryColor3bEXT(red, green, blue); } /* * Class: org.lwjgl.opengl.EXTSecondaryColor * Method: glSecondaryColor3fEXT */ static void JNICALL Java_org_lwjgl_opengl_EXTSecondaryColor_glSecondaryColor3fEXT (JNIEnv * env, jclass clazz, jfloat red, jfloat green, jfloat blue) { glSecondaryColor3fEXT(red, green, blue); } /* * Class: org.lwjgl.opengl.EXTSecondaryColor * Method: glSecondaryColor3ubEXT */ static void JNICALL Java_org_lwjgl_opengl_EXTSecondaryColor_glSecondaryColor3ubEXT (JNIEnv * env, jclass clazz, jbyte red, jbyte green, jbyte blue) { glSecondaryColor3ubEXT(red, green, blue); } /* * Class: org.lwjgl.opengl.EXTSecondaryColor * Method: nglSecondaryColorPointerEXT */ static void JNICALL Java_org_lwjgl_opengl_EXTSecondaryColor_nglSecondaryColorPointerEXT (JNIEnv * env, jclass clazz, jint size, jint type, jint stride, jobject pPointer, jint pPointer_offset) { GLvoid *pPointer_ptr = (GLvoid *)((GLubyte *)(*env)->GetDirectBufferAddress(env, pPointer) + pPointer_offset); glSecondaryColorPointerEXT(size, type, stride, pPointer_ptr); } /* * Class: org.lwjgl.opengl.EXTSecondaryColor * Method: nglSecondaryColorPointerEXTVBO */ static void JNICALL Java_org_lwjgl_opengl_EXTSecondaryColor_nglSecondaryColorPointerEXTVBO (JNIEnv * env, jclass clazz, jint size, jint type, jint stride, jint buffer_offset) { glSecondaryColorPointerEXT(size, type, stride, (GLvoid *)buffer_offset); } #ifdef __cplusplus extern "C" { #endif JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTSecondaryColor_initNativeStubs(JNIEnv *env, jclass clazz) { JavaMethodAndExtFunction functions[] = { {"glSecondaryColor3bEXT", "(BBB)V", (void*)&Java_org_lwjgl_opengl_EXTSecondaryColor_glSecondaryColor3bEXT, "glSecondaryColor3bEXT", (void*)&glSecondaryColor3bEXT}, {"glSecondaryColor3fEXT", "(FFF)V", (void*)&Java_org_lwjgl_opengl_EXTSecondaryColor_glSecondaryColor3fEXT, "glSecondaryColor3fEXT", (void*)&glSecondaryColor3fEXT}, {"glSecondaryColor3ubEXT", "(BBB)V", (void*)&Java_org_lwjgl_opengl_EXTSecondaryColor_glSecondaryColor3ubEXT, "glSecondaryColor3ubEXT", (void*)&glSecondaryColor3ubEXT}, {"nglSecondaryColorPointerEXT", "(IIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTSecondaryColor_nglSecondaryColorPointerEXT, "glSecondaryColorPointerEXT", (void*)&glSecondaryColorPointerEXT}, {"nglSecondaryColorPointerEXTVBO", "(IIII)V", (void*)&Java_org_lwjgl_opengl_EXTSecondaryColor_nglSecondaryColorPointerEXTVBO, NULL, NULL} }; int num_functions = NUMFUNCTIONS(functions); extgl_InitializeClass(env, clazz, num_functions, functions); } #ifdef __cplusplus } #endif --- NEW FILE: org_lwjgl_opengl_EXTBlendFuncSeparate.c --- /* * Copyright (c) 2002-2004 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. */ // ---------------------------------- // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.EXTBlendFuncSeparate // ---------------------------------- #include "extgl.h" typedef void (APIENTRY * glBlendFuncSeparateEXTPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); static glBlendFuncSeparateEXTPROC glBlendFuncSeparateEXT; /* * Class: org.lwjgl.opengl.EXTBlendFuncSeparate * Method: glBlendFuncSeparateEXT */ static void JNICALL Java_org_lwjgl_opengl_EXTBlendFuncSeparate_glBlendFuncSeparateEXT (JNIEnv * env, jclass clazz, jint sfactorRGB, jint dfactorRGB, jint sfactorAlpha, jint dfactorAlpha) { glBlendFuncSeparateEXT(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha); } #ifdef __cplusplus extern "C" { #endif JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTBlendFuncSeparate_initNativeStubs(JNIEnv *env, jclass clazz) { JavaMethodAndExtFunction functions[] = { {"glBlendFuncSeparateEXT", "(IIII)V", (void*)&Java_org_lwjgl_opengl_EXTBlendFuncSeparate_glBlendFuncSeparateEXT, "glBlendFuncSeparateEXT", (void*)&glBlendFuncSeparateEXT} }; int num_functions = NUMFUNCTIONS(functions); extgl_InitializeClass(env, clazz, num_functions, functions); } #ifdef __cplusplus } #endif --- org_lwjgl_opengl_EXTDepthBoundsTest.cpp DELETED --- --- NEW FILE: org_lwjgl_opengl_EXTFogCoord.c --- /* * Copyright (c) 2002-2004 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. */ // ---------------------------------- // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.EXTFogCoord // ---------------------------------- #include "extgl.h" typedef void (APIENTRY * glFogCoordfEXTPROC) (GLfloat coord); typedef void (APIENTRY * glFogCoordPointerEXTPROC) (GLenum type, GLsizei stride, const GLvoid *pointer); static glFogCoordfEXTPROC glFogCoordfEXT; static glFogCoordPointerEXTPROC glFogCoordPointerEXT; /* * Class: org.lwjgl.opengl.EXTFogCoord * Method: glFogCoordfEXT */ static void JNICALL Java_org_lwjgl_opengl_EXTFogCoord_glFogCoordfEXT (JNIEnv * env, jclass clazz, jfloat coord) { glFogCoordfEXT(coord); } /* * Class: org.lwjgl.opengl.EXTFogCoord * Method: nglFogCoordPointerEXT */ static void JNICALL Java_org_lwjgl_opengl_EXTFogCoord_nglFogCoordPointerEXT (JNIEnv * env, jclass clazz, jint type, jint stride, jobject data, jint data_offset) { GLvoid *data_ptr = (GLvoid *)((GLubyte *)(*env)->GetDirectBufferAddress(env, data) + data_offset); glFogCoordPointerEXT(type, stride, data_ptr); } /* * Class: org.lwjgl.opengl.EXTFogCoord * Method: nglFogCoordPointerEXTVBO */ static void JNICALL Java_org_lwjgl_opengl_EXTFogCoord_nglFogCoordPointerEXTVBO (JNIEnv * env, jclass clazz, jint type, jint stride, jint buffer_offset) { glFogCoordPointerEXT(type, stride, (GLvoid *)buffer_offset); } #ifdef __cplusplus extern "C" { #endif JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTFogCoord_initNativeStubs(JNIEnv *env, jclass clazz) { JavaMethodAndExtFunction functions[] = { {"glFogCoordfEXT", "(F)V", (void*)&Java_org_lwjgl_opengl_EXTFogCoord_glFogCoordfEXT, "glFogCoordfEXT", (void*)&glFogCoordfEXT}, {"nglFogCoordPointerEXT", "(IILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTFogCoord_nglFogCoordPointerEXT, "glFogCoordPointerEXT", (void*)&glFogCoordPointerEXT}, {"nglFogCoordPointerEXTVBO", "(III)V", (void*)&Java_org_lwjgl_opengl_EXTFogCoord_nglFogCoordPointerEXTVBO, NULL, NULL} }; int num_functions = NUMFUNCTIONS(functions); extgl_InitializeClass(env, clazz, num_functions, functions); } #ifdef __cplusplus } #endif --- NEW FILE: org_lwjgl_opengl_EXTCompiledVertexArray.c --- /* * Copyright (c) 2002-2004 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. */ // ---------------------------------- // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.EXTCompiledVertexArray // ---------------------------------- #include "extgl.h" typedef void (APIENTRY * glLockArraysEXTPROC) (GLint first, GLsizei count); typedef void (APIENTRY * glUnlockArraysEXTPROC) (); static glLockArraysEXTPROC glLockArraysEXT; static glUnlockArraysEXTPROC glUnlockArraysEXT; /* * Class: org.lwjgl.opengl.EXTCompiledVertexArray * Method: glLockArraysEXT */ static void JNICALL Java_org_lwjgl_opengl_EXTCompiledVertexArray_glLockArraysEXT (JNIEnv * env, jclass clazz, jint first, jint count) { glLockArraysEXT(first, count); } /* * Class: org.lwjgl.opengl.EXTCompiledVertexArray * Method: glUnlockArraysEXT */ static void JNICALL Java_org_lwjgl_opengl_EXTCompiledVertexArray_glUnlockArraysEXT (JNIEnv * env, jclass clazz) { glUnlockArraysEXT(); } #ifdef __cplusplus extern "C" { #endif JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTCompiledVertexArray_initNativeStubs(JNIEnv *env, jclass clazz) { JavaMethodAndExtFunction functions[] = { {"glLockArraysEXT", "(II)V", (void*)&Java_org_lwjgl_opengl_EXTCompiledVertexArray_glLockArraysEXT, "glLockArraysEXT", (void*)&glLockArraysEXT}, {"glUnlockArraysEXT", "()V", (void*)&Java_org_lwjgl_opengl_EXTCompiledVertexArray_glUnlockArraysEXT, "glUnlockArraysEXT", (void*)&glUnlockArraysEXT} }; int num_functions = NUMFUNCTIONS(functions); extgl_InitializeClass(env, clazz, num_functions, functions); } #ifdef __cplusplus } #endif --- org_lwjgl_opengl_EXTBlendEquationSeparate.cpp DELETED --- --- NEW FILE: org_lwjgl_opengl_EXTMultiDrawArrays.c --- /* * Copyright (c) 2002-2004 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. */ // ---------------------------------- // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.EXTMultiDrawArrays // ---------------------------------- #include "extgl.h" typedef void (APIENTRY * glMultiDrawArraysEXTPROC) (GLenum mode, GLint *first, GLsizei *count, GLsizei primcount); static glMultiDrawArraysEXTPROC glMultiDrawArraysEXT; /* * Class: org.lwjgl.opengl.EXTMultiDrawArrays * Method: nglMultiDrawArraysEXT */ static void JNICALL Java_org_lwjgl_opengl_EXTMultiDrawArrays_nglMultiDrawArraysEXT (JNIEnv * env, jclass clazz, jint mode, jobject piFirst, jint piFirst_offset, jobject piCount, jint piCount_offset, jint primcount) { GLint *piFirst_ptr = (GLint *)(*env)->GetDirectBufferAddress(env, piFirst) + piFirst_offset; GLint *piCount_ptr = (GLint *)(*env)->GetDirectBufferAddress(env, piCount) + piCount_offset; glMultiDrawArraysEXT(mode, piFirst_ptr, piCount_ptr, primcount); } #ifdef __cplusplus extern "C" { #endif JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTMultiDrawArrays_initNativeStubs(JNIEnv *env, jclass clazz) { JavaMethodAndExtFunction functions[] = { {"nglMultiDrawArraysEXT", "(ILjava/nio/IntBuffer;ILjava/nio/IntBuffer;II)V", (void*)&Java_org_lwjgl_opengl_EXTMultiDrawArrays_nglMultiDrawArraysEXT, "glMultiDrawArraysEXT", (void*)&glMultiDrawArraysEXT} }; int num_functions = NUMFUNCTIONS(functions); extgl_InitializeClass(env, clazz, num_functions, functions); } #ifdef __cplusplus } #endif Index: Makefile.am =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/ext/Makefile.am,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- Makefile.am 18 May 2004 20:57:35 -0000 1.4 +++ Makefile.am 10 Sep 2004 08:13:52 -0000 1.5 @@ -2,15 +2,15 @@ libext_la_SOURCES = $(SRC) INCLUDES=-I.. -SRC=org_lwjgl_opengl_EXTBlendEquationSeparate.cpp \ - org_lwjgl_opengl_EXTBlendFuncSeparate.cpp \ - org_lwjgl_opengl_EXTCompiledVertexArray.cpp \ - org_lwjgl_opengl_EXTDepthBoundsTest.cpp \ - org_lwjgl_opengl_EXTDrawRangeElements.cpp \ - org_lwjgl_opengl_EXTFogCoord.cpp \ - org_lwjgl_opengl_EXTMultiDrawArrays.cpp \ - org_lwjgl_opengl_EXTPointParameters.cpp \ - org_lwjgl_opengl_EXTSecondaryColor.cpp \ - org_lwjgl_opengl_EXTStencilTwoSide.cpp \ - org_lwjgl_opengl_EXTVertexShader.cpp \ - org_lwjgl_opengl_EXTVertexWeighting.cpp +SRC=org_lwjgl_opengl_EXTBlendEquationSeparate.c \ + org_lwjgl_opengl_EXTBlendFuncSeparate.c \ + org_lwjgl_opengl_EXTCompiledVertexArray.c \ + org_lwjgl_opengl_EXTDepthBoundsTest.c \ + org_lwjgl_opengl_EXTDrawRangeElements.c \ + org_lwjgl_opengl_EXTFogCoord.c \ + org_lwjgl_opengl_EXTMultiDrawArrays.c \ + org_lwjgl_opengl_EXTPointParameters.c \ + org_lwjgl_opengl_EXTSecondaryColor.c \ + org_lwjgl_opengl_EXTStencilTwoSide.c \ + org_lwjgl_opengl_EXTVertexShader.c \ + org_lwjgl_opengl_EXTVertexWeighting.c --- NEW FILE: org_lwjgl_opengl_EXTDepthBoundsTest.c --- /* * Copyright (c) 2002-2004 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. */ // ---------------------------------- // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.EXTDepthBoundsTest // ---------------------------------- #include "extgl.h" typedef void (APIENTRY * glDepthBoundsEXTPROC) (GLclampd zmin, GLclampd zmax); static glDepthBoundsEXTPROC glDepthBoundsEXT; /* * Class: org.lwjgl.opengl.EXTDepthBoundsTest * Method: glDepthBoundsEXT */ static void JNICALL Java_org_lwjgl_opengl_EXTDepthBoundsTest_glDepthBoundsEXT (JNIEnv * env, jclass clazz, jfloat zmin, jfloat zmax) { glDepthBoundsEXT(zmin, zmax); } #ifdef __cplusplus extern "C" { #endif JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTDepthBoundsTest_initNativeStubs(JNIEnv *env, jclass clazz) { JavaMethodAndExtFunction functions[] = { {"glDepthBoundsEXT", "(FF)V", (void*)&Java_org_lwjgl_opengl_EXTDepthBoundsTest_glDepthBoundsEXT, "glDepthBoundsEXT", (void*)&glDepthBoundsEXT} }; int num_functions = NUMFUNCTIONS(functions); extgl_InitializeClass(env, clazz, num_functions, functions); } #ifdef __cplusplus } #endif --- org_lwjgl_opengl_EXTDrawRangeElements.cpp DELETED --- --- NEW FILE: org_lwjgl_opengl_EXTStencilTwoSide.c --- /* * Copyright (c) 2002-2004 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. */ // ---------------------------------- // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.EXTStencilTwoSide // ---------------------------------- #include "extgl.h" typedef void (APIENTRY * glActiveStencilFaceEXTPROC) (GLenum face); static glActiveStencilFaceEXTPROC glActiveStencilFaceEXT; /* * Class: org.lwjgl.opengl.EXTStencilTwoSide * Method: glActiveStencilFaceEXT */ static void JNICALL Java_org_lwjgl_opengl_EXTStencilTwoSide_glActiveStencilFaceEXT (JNIEnv * env, jclass clazz, jint face) { glActiveStencilFaceEXT(face); } #ifdef __cplusplus extern "C" { #endif JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTStencilTwoSide_initNativeStubs(JNIEnv *env, jclass clazz) { JavaMethodAndExtFunction functions[] = { {"glActiveStencilFaceEXT", "(I)V", (void*)&Java_org_lwjgl_opengl_EXTStencilTwoSide_glActiveStencilFaceEXT, "glActiveStencilFaceEXT", (void*)&glActiveStencilFaceEXT} }; int num_functions = NUMFUNCTIONS(functions); extgl_InitializeClass(env, clazz, num_functions, functions); } #ifdef __cplusplus } #endif --- org_lwjgl_opengl_EXTSecondaryColor.cpp DELETED --- --- NEW FILE: org_lwjgl_opengl_EXTDrawRangeElements.c --- /* * Copyright (c) 2002-2004 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. */ // ---------------------------------- // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.EXTDrawRangeElements // ---------------------------------- #include "extgl.h" typedef void (APIENTRY * glDrawRange... [truncated message content] |