2004-06-12 16:28:34 -04:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2002-2004 LWJGL Project
|
2004-01-20 06:19:13 -05:00
|
|
|
* 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.
|
|
|
|
*
|
2004-06-12 16:28:34 -04:00
|
|
|
* * Neither the name of 'LWJGL' nor the names of
|
2004-01-20 06:19:13 -05:00
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* $Id$
|
|
|
|
*
|
|
|
|
* Core OpenGL functions.
|
|
|
|
*
|
|
|
|
* @author cix_foo <cix_foo@users.sourceforge.net>
|
|
|
|
* @version $Revision$
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "extgl.h"
|
|
|
|
|
2004-01-29 17:08:59 -05:00
|
|
|
typedef void (APIENTRY * glActiveTexturePROC) (GLenum texture );
|
|
|
|
typedef void (APIENTRY * glClientActiveTexturePROC) (GLenum texture );
|
|
|
|
typedef void (APIENTRY * glCompressedTexImage1DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data );
|
|
|
|
typedef void (APIENTRY * glCompressedTexImage2DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data );
|
|
|
|
typedef void (APIENTRY * glCompressedTexImage3DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data );
|
|
|
|
typedef void (APIENTRY * glCompressedTexSubImage1DPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data );
|
|
|
|
typedef void (APIENTRY * glCompressedTexSubImage2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data );
|
|
|
|
typedef void (APIENTRY * glCompressedTexSubImage3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data );
|
|
|
|
typedef void (APIENTRY * glGetCompressedTexImagePROC) (GLenum target, GLint lod, GLvoid *img );
|
|
|
|
typedef void (APIENTRY * glMultiTexCoord1fPROC) (GLenum target, GLfloat s );
|
|
|
|
typedef void (APIENTRY * glMultiTexCoord2fPROC) (GLenum target, GLfloat s, GLfloat t );
|
|
|
|
typedef void (APIENTRY * glMultiTexCoord3fPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r );
|
|
|
|
typedef void (APIENTRY * glMultiTexCoord4fPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q );
|
|
|
|
typedef void (APIENTRY * glLoadTransposeMatrixfPROC) (const GLfloat m[16] );
|
|
|
|
typedef void (APIENTRY * glMultTransposeMatrixfPROC) (const GLfloat m[16] );
|
|
|
|
typedef void (APIENTRY * glSampleCoveragePROC) (GLclampf value, GLboolean invert );
|
|
|
|
|
|
|
|
static glActiveTexturePROC glActiveTexture;
|
|
|
|
static glClientActiveTexturePROC glClientActiveTexture;
|
|
|
|
static glMultiTexCoord1fPROC glMultiTexCoord1f;
|
|
|
|
static glMultiTexCoord2fPROC glMultiTexCoord2f;
|
|
|
|
static glMultiTexCoord3fPROC glMultiTexCoord3f;
|
|
|
|
static glMultiTexCoord4fPROC glMultiTexCoord4f;
|
|
|
|
static glLoadTransposeMatrixfPROC glLoadTransposeMatrixf;
|
|
|
|
static glMultTransposeMatrixfPROC glMultTransposeMatrixf;
|
|
|
|
static glCompressedTexImage3DPROC glCompressedTexImage3D;
|
|
|
|
static glCompressedTexImage2DPROC glCompressedTexImage2D;
|
|
|
|
static glCompressedTexImage1DPROC glCompressedTexImage1D;
|
|
|
|
static glCompressedTexSubImage3DPROC glCompressedTexSubImage3D;
|
|
|
|
static glCompressedTexSubImage2DPROC glCompressedTexSubImage2D;
|
|
|
|
static glCompressedTexSubImage1DPROC glCompressedTexSubImage1D;
|
|
|
|
static glGetCompressedTexImagePROC glGetCompressedTexImage;
|
|
|
|
static glSampleCoveragePROC glSampleCoverage;
|
|
|
|
|
2004-01-20 06:19:13 -05:00
|
|
|
/*
|
|
|
|
* Class: org_lwjgl_opengl_GL13
|
|
|
|
* Method: glActiveTexture
|
|
|
|
* Signature: (I)V
|
|
|
|
*/
|
2004-03-07 10:41:10 -05:00
|
|
|
static void JNICALL Java_org_lwjgl_opengl_GL13_glActiveTexture
|
2004-01-20 06:19:13 -05:00
|
|
|
(JNIEnv *env, jclass clazz, jint texture)
|
|
|
|
{
|
|
|
|
glActiveTexture(texture);
|
2004-03-07 11:01:45 -05:00
|
|
|
|
2004-01-20 06:19:13 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Class: org_lwjgl_opengl_GL13
|
|
|
|
* Method: glClientActiveTexture
|
|
|
|
* Signature: (I)V
|
|
|
|
*/
|
2004-03-07 10:41:10 -05:00
|
|
|
static void JNICALL Java_org_lwjgl_opengl_GL13_glClientActiveTexture
|
2004-01-20 06:19:13 -05:00
|
|
|
(JNIEnv *env, jclass clazz, jint texture)
|
|
|
|
{
|
|
|
|
glClientActiveTexture(texture);
|
2004-03-07 11:01:45 -05:00
|
|
|
|
2004-01-20 06:19:13 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Class: org_lwjgl_opengl_GL13
|
|
|
|
* Method: glCompressedTexImage1D
|
|
|
|
* Signature: (IIIIIII)V
|
|
|
|
*/
|
2004-03-07 10:41:10 -05:00
|
|
|
static void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexImage1D
|
2004-01-20 06:19:13 -05:00
|
|
|
(JNIEnv *env, jclass clazz, jint target, jint level, jint internalformat, jint width, jint border, jint imagesize, jobject buffer, jint offset)
|
|
|
|
{
|
2004-09-10 04:13:56 -04:00
|
|
|
const void *address = (const void *)(offset + (const GLbyte *)(*env)->GetDirectBufferAddress(env, buffer));
|
2004-01-20 06:19:13 -05:00
|
|
|
glCompressedTexImage1D(target, level, internalformat, width, border, imagesize, address);
|
2004-03-07 11:01:45 -05:00
|
|
|
|
2004-01-20 06:19:13 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Class: org_lwjgl_opengl_GL13
|
|
|
|
* Method: glCompressedTexImage2D
|
|
|
|
* Signature: (IIIIIIII)V
|
|
|
|
*/
|
2004-03-07 10:41:10 -05:00
|
|
|
static void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexImage2D
|
2004-01-20 06:19:13 -05:00
|
|
|
(JNIEnv *env, jclass clazz, jint target, jint level, jint internalformat, jint width, jint height, jint border, jint imagesize, jobject buffer, jint offset)
|
|
|
|
{
|
2004-09-10 04:13:56 -04:00
|
|
|
const void *address = (const void *)(offset + (const GLbyte *)(*env)->GetDirectBufferAddress(env, buffer));
|
2004-01-20 06:19:13 -05:00
|
|
|
glCompressedTexImage2D(target, level, internalformat, width, height, border, imagesize, address);
|
2004-03-07 11:01:45 -05:00
|
|
|
|
2004-01-20 06:19:13 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Class: org_lwjgl_opengl_GL13
|
|
|
|
* Method: glCompressedTexImage3D
|
|
|
|
* Signature: (IIIIIIIII)V
|
|
|
|
*/
|
2004-03-07 10:41:10 -05:00
|
|
|
static void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexImage3D
|
2004-01-20 06:19:13 -05:00
|
|
|
(JNIEnv *env, jclass clazz, jint target, jint level, jint internalformat, jint width, jint height, jint depth, jint border, jint imagesize, jobject buffer, jint offset)
|
|
|
|
{
|
2004-09-10 04:13:56 -04:00
|
|
|
const void *address = (const void *)(offset + (const GLbyte *)(*env)->GetDirectBufferAddress(env, buffer));
|
2004-01-20 06:19:13 -05:00
|
|
|
glCompressedTexImage3D(target, level, internalformat, width, height, depth, border, imagesize, address);
|
2004-03-07 11:01:45 -05:00
|
|
|
|
2004-01-20 06:19:13 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Class: org_lwjgl_opengl_GL13
|
|
|
|
* Method: glCompressedTexSubImage1D
|
|
|
|
* Signature: (IIIIIII)V
|
|
|
|
*/
|
2004-03-07 10:41:10 -05:00
|
|
|
static void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexSubImage1D
|
2004-01-20 06:19:13 -05:00
|
|
|
(JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint width, jint format, jint imagesize, jobject buffer, jint offset)
|
|
|
|
{
|
2004-09-10 04:13:56 -04:00
|
|
|
const void *address = (const void *)(offset + (const GLbyte *)(*env)->GetDirectBufferAddress(env, buffer));
|
2004-01-20 06:19:13 -05:00
|
|
|
glCompressedTexSubImage1D(target, level, xoffset, width, format, imagesize, address);
|
2004-03-07 11:01:45 -05:00
|
|
|
|
2004-01-20 06:19:13 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Class: org_lwjgl_opengl_GL13
|
|
|
|
* Method: glCompressedTexSubImage2D
|
|
|
|
* Signature: (IIIIIIIII)V
|
|
|
|
*/
|
2004-03-07 10:41:10 -05:00
|
|
|
static void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexSubImage2D
|
2004-01-20 06:19:13 -05:00
|
|
|
(JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint yoffset, jint width, jint height, jint format, jint imagesize, jobject buffer, jint offset)
|
|
|
|
{
|
2004-09-10 04:13:56 -04:00
|
|
|
const void *address = (const void *)(offset + (const GLbyte *)(*env)->GetDirectBufferAddress(env, buffer));
|
2004-01-20 06:19:13 -05:00
|
|
|
glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imagesize, address);
|
2004-03-07 11:01:45 -05:00
|
|
|
|
2004-01-20 06:19:13 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Class: org_lwjgl_opengl_GL13
|
|
|
|
* Method: glCompressedTexSubImage3D
|
|
|
|
* Signature: (IIIIIIIIIII)V
|
|
|
|
*/
|
2004-03-07 10:41:10 -05:00
|
|
|
static void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexSubImage3D
|
2004-01-20 06:19:13 -05:00
|
|
|
(JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint yoffset, jint zoffset, jint width, jint height, jint depth, jint format, jint imagesize, jobject buffer, jint offset)
|
|
|
|
{
|
2004-09-10 04:13:56 -04:00
|
|
|
const void *address = (const void *)(offset + (const GLbyte *)(*env)->GetDirectBufferAddress(env, buffer));
|
2004-01-20 06:19:13 -05:00
|
|
|
glCompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imagesize, address);
|
2004-03-07 11:01:45 -05:00
|
|
|
|
2004-01-20 06:19:13 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Class: org_lwjgl_opengl_GL13
|
|
|
|
* Method: glGetCompressedTexImage
|
|
|
|
* Signature: (III)V
|
|
|
|
*/
|
2004-03-07 10:41:10 -05:00
|
|
|
static void JNICALL Java_org_lwjgl_opengl_GL13_nglGetCompressedTexImage
|
2004-01-20 06:19:13 -05:00
|
|
|
(JNIEnv *env, jclass clazz, jint target, jint lod, jobject buffer, jint offset)
|
|
|
|
{
|
2004-09-10 04:13:56 -04:00
|
|
|
void *address = (void *)(offset + (GLbyte *)(*env)->GetDirectBufferAddress(env, buffer));
|
2004-01-20 06:19:13 -05:00
|
|
|
glGetCompressedTexImage(target, lod, address);
|
2004-03-07 11:01:45 -05:00
|
|
|
|
2004-01-20 06:19:13 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Class: org_lwjgl_opengl_GL13
|
|
|
|
* Method: glMultiTexCoord1f
|
|
|
|
* Signature: (IF)V
|
|
|
|
*/
|
2004-03-07 10:41:10 -05:00
|
|
|
static void JNICALL Java_org_lwjgl_opengl_GL13_glMultiTexCoord1f
|
2004-01-20 06:19:13 -05:00
|
|
|
(JNIEnv *env, jclass clazz, jint target, jfloat s)
|
|
|
|
{
|
|
|
|
glMultiTexCoord1f(target, s);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Class: org_lwjgl_opengl_GL13
|
|
|
|
* Method: glMultiTexCoord2f
|
|
|
|
* Signature: (IFF)V
|
|
|
|
*/
|
2004-03-07 10:41:10 -05:00
|
|
|
static void JNICALL Java_org_lwjgl_opengl_GL13_glMultiTexCoord2f
|
2004-01-20 06:19:13 -05:00
|
|
|
(JNIEnv *env, jclass clazz, jint target, jfloat s, jfloat t)
|
|
|
|
{
|
|
|
|
glMultiTexCoord2f(target, s, t);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Class: org_lwjgl_opengl_GL13
|
|
|
|
* Method: glMultiTexCoord3f
|
|
|
|
* Signature: (IFFF)V
|
|
|
|
*/
|
2004-03-07 10:41:10 -05:00
|
|
|
static void JNICALL Java_org_lwjgl_opengl_GL13_glMultiTexCoord3f
|
2004-01-20 06:19:13 -05:00
|
|
|
(JNIEnv *env, jclass clazz, jint target, jfloat s, jfloat t, jfloat r)
|
|
|
|
{
|
|
|
|
glMultiTexCoord3f(target, s, t, r);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Class: org_lwjgl_opengl_GL13
|
|
|
|
* Method: glMultiTexCoord4f
|
|
|
|
* Signature: (IFFFF)V
|
|
|
|
*/
|
2004-03-07 10:41:10 -05:00
|
|
|
static void JNICALL Java_org_lwjgl_opengl_GL13_glMultiTexCoord4f
|
2004-01-20 06:19:13 -05:00
|
|
|
(JNIEnv *env, jclass clazz, jint target, jfloat s, jfloat t, jfloat r, jfloat q)
|
|
|
|
{
|
|
|
|
glMultiTexCoord4f(target, s, t, r, q);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Class: org_lwjgl_opengl_GL13
|
|
|
|
* Method: glLoadTransposeMatrixf
|
|
|
|
* Signature: (I)V
|
|
|
|
*/
|
2004-03-07 10:41:10 -05:00
|
|
|
static void JNICALL Java_org_lwjgl_opengl_GL13_nglLoadTransposeMatrixf
|
2004-01-20 06:19:13 -05:00
|
|
|
(JNIEnv *env, jclass clazz, jobject buffer, jint offset)
|
|
|
|
{
|
2004-09-10 04:13:56 -04:00
|
|
|
const GLfloat *address = (const GLfloat *)(*env)->GetDirectBufferAddress(env, buffer);
|
2004-01-20 06:19:13 -05:00
|
|
|
glLoadTransposeMatrixf(address);
|
2004-03-07 11:01:45 -05:00
|
|
|
|
2004-01-20 06:19:13 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Class: org_lwjgl_opengl_GL13
|
|
|
|
* Method: glMultTransposeMatrixf
|
|
|
|
* Signature: (I)V
|
|
|
|
*/
|
2004-03-07 10:41:10 -05:00
|
|
|
static void JNICALL Java_org_lwjgl_opengl_GL13_nglMultTransposeMatrixf
|
2004-01-20 06:19:13 -05:00
|
|
|
(JNIEnv *env, jclass clazz, jobject buffer, jint offset)
|
|
|
|
{
|
2004-09-10 04:13:56 -04:00
|
|
|
const GLfloat *address = (const GLfloat *)(*env)->GetDirectBufferAddress(env, buffer);
|
2004-01-20 06:19:13 -05:00
|
|
|
glMultTransposeMatrixf(address);
|
2004-03-07 11:01:45 -05:00
|
|
|
|
2004-01-20 06:19:13 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Class: org_lwjgl_opengl_GL13
|
|
|
|
* Method: glSampleCoverage
|
|
|
|
* Signature: (FZ)V
|
|
|
|
*/
|
2004-03-07 10:41:10 -05:00
|
|
|
static void JNICALL Java_org_lwjgl_opengl_GL13_glSampleCoverage
|
2004-01-20 06:19:13 -05:00
|
|
|
(JNIEnv *env, jclass clazz, jfloat value, jboolean invert)
|
|
|
|
{
|
|
|
|
glSampleCoverage(value, invert);
|
2004-03-07 11:01:45 -05:00
|
|
|
|
2004-01-20 06:19:13 -05:00
|
|
|
}
|
2004-03-07 10:18:47 -05:00
|
|
|
|
2004-09-10 04:13:56 -04:00
|
|
|
#ifdef __cplusplus
|
2004-07-03 17:12:33 -04:00
|
|
|
extern "C" {
|
2004-09-10 04:13:56 -04:00
|
|
|
#endif
|
2004-07-03 17:12:33 -04:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_initNativeStubs(JNIEnv *env, jclass clazz) {
|
2004-03-09 04:25:10 -05:00
|
|
|
JavaMethodAndExtFunction functions[] = {
|
2004-09-10 04:13:56 -04:00
|
|
|
{"glActiveTexture", "(I)V", (void*)&Java_org_lwjgl_opengl_GL13_glActiveTexture, "glActiveTexture", (void*)&glActiveTexture},
|
|
|
|
{"glClientActiveTexture", "(I)V", (void*)&Java_org_lwjgl_opengl_GL13_glClientActiveTexture, "glClientActiveTexture", (void*)&glClientActiveTexture},
|
|
|
|
{"nglCompressedTexImage1D", "(IIIIIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_GL13_nglCompressedTexImage1D, "glCompressedTexImage1D", (void*)&glCompressedTexImage1D},
|
|
|
|
{"nglCompressedTexImage2D", "(IIIIIIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_GL13_nglCompressedTexImage2D, "glCompressedTexImage2D", (void*)&glCompressedTexImage2D},
|
|
|
|
{"nglCompressedTexImage3D", "(IIIIIIIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_GL13_nglCompressedTexImage3D, "glCompressedTexImage3D", (void*)&glCompressedTexImage3D},
|
|
|
|
{"nglCompressedTexSubImage1D", "(IIIIIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_GL13_nglCompressedTexSubImage1D, "glCompressedTexSubImage1D", (void*)&glCompressedTexSubImage1D},
|
|
|
|
{"nglCompressedTexSubImage2D", "(IIIIIIIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_GL13_nglCompressedTexSubImage2D, "glCompressedTexSubImage2D", (void*)&glCompressedTexSubImage2D},
|
|
|
|
{"nglCompressedTexSubImage3D", "(IIIIIIIIIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_GL13_nglCompressedTexSubImage3D, "glCompressedTexSubImage3D", (void*)&glCompressedTexSubImage3D},
|
|
|
|
{"nglGetCompressedTexImage", "(IILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_GL13_nglGetCompressedTexImage, "glGetCompressedTexImage", (void*)&glGetCompressedTexImage},
|
|
|
|
{"glMultiTexCoord1f", "(IF)V", (void*)&Java_org_lwjgl_opengl_GL13_glMultiTexCoord1f, "glMultiTexCoord1f", (void*)&glMultiTexCoord1f},
|
|
|
|
{"glMultiTexCoord2f", "(IFF)V", (void*)&Java_org_lwjgl_opengl_GL13_glMultiTexCoord2f, "glMultiTexCoord2f", (void*)&glMultiTexCoord2f},
|
|
|
|
{"glMultiTexCoord3f", "(IFFF)V", (void*)&Java_org_lwjgl_opengl_GL13_glMultiTexCoord3f, "glMultiTexCoord3f", (void*)&glMultiTexCoord3f},
|
|
|
|
{"glMultiTexCoord4f", "(IFFFF)V", (void*)&Java_org_lwjgl_opengl_GL13_glMultiTexCoord4f, "glMultiTexCoord4f", (void*)&glMultiTexCoord4f},
|
|
|
|
{"nglLoadTransposeMatrixf", "(Ljava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL13_nglLoadTransposeMatrixf, "glLoadTransposeMatrixf", (void*)&glLoadTransposeMatrixf},
|
|
|
|
{"nglMultTransposeMatrixf", "(Ljava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL13_nglMultTransposeMatrixf, "glMultTransposeMatrixf", (void*)&glMultTransposeMatrixf},
|
|
|
|
{"glSampleCoverage", "(FZ)V", (void*)&Java_org_lwjgl_opengl_GL13_glSampleCoverage, "glSampleCoverage", (void*)&glSampleCoverage}
|
2004-03-07 10:18:47 -05:00
|
|
|
};
|
|
|
|
int num_functions = NUMFUNCTIONS(functions);
|
2004-07-03 17:12:33 -04:00
|
|
|
extgl_InitializeClass(env, clazz, num_functions, functions);
|
|
|
|
}
|
2004-09-10 04:13:56 -04:00
|
|
|
#ifdef __cplusplus
|
2004-03-07 10:18:47 -05:00
|
|
|
}
|
2004-09-10 04:13:56 -04:00
|
|
|
#endif
|
2004-03-07 10:18:47 -05:00
|
|
|
|