Added missing .cpp files
This commit is contained in:
parent
65c2910e77
commit
254681763d
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,570 @@
|
|||
/*
|
||||
* Copyright (c) 2002 Light Weight Java Game Library 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 'Light Weight Java Game Library' 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.
|
||||
*/
|
||||
|
||||
/**
|
||||
* $Id$
|
||||
*
|
||||
* Core OpenGL functions.
|
||||
*
|
||||
* @author cix_foo <cix_foo@users.sourceforge.net>
|
||||
* @version $Revision$
|
||||
*/
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
#include "org_lwjgl_opengl_CoreGL12.h"
|
||||
#include "checkGLerror.h"
|
||||
#include "extgl.h"
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL12
|
||||
* Method: glColorTable
|
||||
* Signature: (IIIIII)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL12_glColorTable
|
||||
(JNIEnv * env, jclass clazz, jint target, jint internalFormat, jint width, jint format, jint type, jobject buffer)
|
||||
{
|
||||
const void *address = (const void *)env->GetDirectBufferAddress(buffer);
|
||||
glColorTable(target, internalFormat, width, format, type, address);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL12
|
||||
* Method: glColorSubTable
|
||||
* Signature: (IIIIII)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL12_glColorSubTable
|
||||
(JNIEnv * env, jclass clazz, jint target, jint start, jint count, jint format, jint type, jobject buffer)
|
||||
{
|
||||
const void *address = (const void *)env->GetDirectBufferAddress(buffer);
|
||||
glColorSubTable(target, start, count, format, type, address);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL12
|
||||
* Method: glGetColorTable
|
||||
* Signature: (IIII)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL12_glGetColorTable
|
||||
(JNIEnv * env, jclass clazz, jint target, jint format, jint type, jobject buffer)
|
||||
{
|
||||
CHECK_EXISTS(glGetColorTable)
|
||||
void *address = (void *)env->GetDirectBufferAddress(buffer);
|
||||
glGetColorTable(target, format, type, address);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL12
|
||||
* Method: glGetColorTableParameteriv
|
||||
* Signature: (III)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL12_glGetColorTableParameteriv
|
||||
(JNIEnv * env, jclass clazz, jint target, jint pname, jobject buffer)
|
||||
{
|
||||
CHECK_EXISTS(glGetColorTableParameteriv)
|
||||
GLint *address = (GLint *)env->GetDirectBufferAddress(buffer);
|
||||
glGetColorTableParameteriv(target, pname, address);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL12
|
||||
* Method: glGetColorTableParameterfv
|
||||
* Signature: (III)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL12_glGetColorTableParameterfv
|
||||
(JNIEnv * env, jclass clazz, jint target, jint pname, jobject buffer)
|
||||
{
|
||||
CHECK_EXISTS(glGetColorTableParameterfv)
|
||||
GLfloat *address = (GLfloat *)env->GetDirectBufferAddress(buffer);
|
||||
glGetColorTableParameterfv(target, pname, address);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL12
|
||||
* Method: glColorTableParameteriv
|
||||
* Signature: (III)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL12_glColorTableParameteriv
|
||||
(JNIEnv *env, jclass clazz, jint target, jint pname, jobject buffer)
|
||||
{
|
||||
CHECK_EXISTS(glColorTableParameteriv)
|
||||
const GLint *address = (const GLint *)env->GetDirectBufferAddress(buffer);
|
||||
glColorTableParameteriv(target, pname, address);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL12
|
||||
* Method: glColorTableParameterfv
|
||||
* Signature: (III)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL12_glColorTableParameterfv
|
||||
(JNIEnv *env, jclass clazz, jint target, jint pname, jobject buffer)
|
||||
{
|
||||
CHECK_EXISTS(glColorTableParameterfv)
|
||||
const GLfloat *address = (const GLfloat *)env->GetDirectBufferAddress(buffer);
|
||||
glColorTableParameterfv(target, pname, address);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL12
|
||||
* Method: glCopyColorSubTable
|
||||
* Signature: (IIIII)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL12_glCopyColorSubTable
|
||||
(JNIEnv *env, jclass clazz, jint target, jint start, jint x, jint y, jint width)
|
||||
{
|
||||
CHECK_EXISTS(glCopyColorSubTable)
|
||||
glCopyColorSubTable(target, start, x, y, width);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL12
|
||||
* Method: glCopyColorTable
|
||||
* Signature: (IIIII)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL12_glCopyColorTable
|
||||
(JNIEnv *env, jclass clazz, jint target, jint internalformat, jint x, jint y, jint width)
|
||||
{
|
||||
CHECK_EXISTS(glCopyColorTable)
|
||||
glCopyColorTable(target, internalformat, x, y, width);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL12
|
||||
* Method: glBlendEquation
|
||||
* Signature: (I)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL12_glBlendEquation
|
||||
(JNIEnv *env, jclass clazz, jint mode)
|
||||
{
|
||||
CHECK_EXISTS(glBlendEquation)
|
||||
glBlendEquation(mode);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL12
|
||||
* Method: glBlendColor
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL12_glBlendColor(JNIEnv * env, jclass clazz, jfloat p0, jfloat p1, jfloat p2, jfloat p3)
|
||||
{
|
||||
glBlendColor((GLfloat) p0, (GLfloat) p1, (GLfloat) p2, (GLfloat) p3);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL12
|
||||
* Method: glHistogram
|
||||
* Signature: (IIIZ)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL12_glHistogram
|
||||
(JNIEnv *env, jclass clazz, jint target, jint width, jint internalformat, jboolean sink)
|
||||
{
|
||||
CHECK_EXISTS(glHistogram)
|
||||
glHistogram(target, width, internalformat, sink);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL12
|
||||
* Method: glResetHistogram
|
||||
* Signature: (I)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL12_glResetHistogram
|
||||
(JNIEnv *env, jclass clazz, jint target)
|
||||
{
|
||||
CHECK_EXISTS(glResetHistogram)
|
||||
glResetHistogram(target);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL12
|
||||
* Method: glGetHistogram
|
||||
* Signature: (IZIII)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL12_glGetHistogram
|
||||
(JNIEnv *env, jclass clazz, jint target, jboolean reset, jint format, jint type, jobject buffer)
|
||||
{
|
||||
CHECK_EXISTS(glGetHistogram)
|
||||
void *address = (void *)env->GetDirectBufferAddress(buffer);
|
||||
glGetHistogram(target, reset, format, type, address);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL12
|
||||
* Method: glGetHistogramParameterfv
|
||||
* Signature: (III)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL12_glGetHistogramParameterfv
|
||||
(JNIEnv *env, jclass clazz, jint target, jint pname, jobject buffer)
|
||||
{
|
||||
CHECK_EXISTS(glGetHistogramParameterfv)
|
||||
GLfloat *address = (GLfloat *)env->GetDirectBufferAddress(buffer);
|
||||
glGetHistogramParameterfv(target, pname, address);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL12
|
||||
* Method: glGetHistogramParameteriv
|
||||
* Signature: (III)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL12_glGetHistogramParameteriv
|
||||
(JNIEnv *env, jclass clazz, jint target, jint pname, jobject buffer)
|
||||
{
|
||||
CHECK_EXISTS(glGetHistogramParameteriv)
|
||||
GLint *address = (GLint *)env->GetDirectBufferAddress(buffer);
|
||||
glGetHistogramParameteriv(target, pname, address);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL12
|
||||
* Method: glMinmax
|
||||
* Signature: (IIZ)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL12_glMinmax
|
||||
(JNIEnv *env, jclass clazz, jint target, jint internalformat, jboolean sink)
|
||||
{
|
||||
CHECK_EXISTS(glMinmax)
|
||||
glMinmax(target, internalformat, sink);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL12
|
||||
* Method: glResetMinmax
|
||||
* Signature: (I)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL12_glResetMinmax
|
||||
(JNIEnv *env, jclass clazz, jint target)
|
||||
{
|
||||
CHECK_EXISTS(glResetMinmax)
|
||||
glResetMinmax(target);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL12
|
||||
* Method: glGetMinmax
|
||||
* Signature: (IZIII)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL12_glGetMinmax
|
||||
(JNIEnv *env, jclass clazz, jint target, jboolean reset, jint format, jint type, jobject buffer)
|
||||
{
|
||||
CHECK_EXISTS(glGetMinmax)
|
||||
void *address = (void *)env->GetDirectBufferAddress(buffer);
|
||||
glGetMinmax(target, reset, format, type, address);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL12
|
||||
* Method: glGetMinmaxParameterfv
|
||||
* Signature: (III)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL12_glGetMinmaxParameterfv
|
||||
(JNIEnv *env, jclass clazz, jint target, jint pname, jobject buffer)
|
||||
{
|
||||
CHECK_EXISTS(glGetMinmaxParameterfv)
|
||||
GLfloat *address = (GLfloat *)env->GetDirectBufferAddress(buffer);
|
||||
glGetMinmaxParameterfv(target, pname, address);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL12
|
||||
* Method: glGetMinmaxParameteriv
|
||||
* Signature: (III)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL12_glGetMinmaxParameteriv
|
||||
(JNIEnv *env, jclass clazz, jint target, jint pname, jobject buffer)
|
||||
{
|
||||
CHECK_EXISTS(glGetMinmaxParameteriv)
|
||||
GLint *address = (GLint *)env->GetDirectBufferAddress(buffer);
|
||||
glGetMinmaxParameteriv(target, pname, address);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL12
|
||||
* Method: glConvolutionFilter1D
|
||||
* Signature: (IIIIII)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL12_glConvolutionFilter1D
|
||||
(JNIEnv *env, jclass clazz, jint target, jint internalformat, jint width, jint format, jint type, jobject buffer)
|
||||
{
|
||||
CHECK_EXISTS(glConvolutionFilter1D)
|
||||
const void *address = (const void *)env->GetDirectBufferAddress(buffer);
|
||||
glConvolutionFilter1D(target, internalformat, width, format, type, address);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL12
|
||||
* Method: glConvolutionFilter2D
|
||||
* Signature: (IIIIIII)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL12_glConvolutionFilter2D
|
||||
(JNIEnv *env, jclass clazz, jint target, jint internalformat, jint width, jint height, jint format, jint type, jobject buffer)
|
||||
{
|
||||
CHECK_EXISTS(glConvolutionFilter2D)
|
||||
const void *address = (const void *)env->GetDirectBufferAddress(buffer);
|
||||
glConvolutionFilter2D(target, internalformat, width, height, format, type, address);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL12
|
||||
* Method: glConvolutionParameterf
|
||||
* Signature: (IIF)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL12_glConvolutionParameterf
|
||||
(JNIEnv *env, jclass clazz, jint target, jint pname, jfloat params)
|
||||
{
|
||||
CHECK_EXISTS(glConvolutionParameterf)
|
||||
glConvolutionParameterf(target, pname, params);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL12
|
||||
* Method: glConvolutionParameterfv
|
||||
* Signature: (III)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL12_glConvolutionParameterfv
|
||||
(JNIEnv *env, jclass clazz, jint target, jint pname, jobject buffer)
|
||||
{
|
||||
CHECK_EXISTS(glConvolutionParameterfv)
|
||||
const GLfloat *address = (const GLfloat *)env->GetDirectBufferAddress(buffer);
|
||||
glConvolutionParameterfv(target, pname, address);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL12
|
||||
* Method: glConvolutionParameteri
|
||||
* Signature: (III)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL12_glConvolutionParameteri
|
||||
(JNIEnv *env, jclass clazz, jint target, jint pname, jint params)
|
||||
{
|
||||
CHECK_EXISTS(glConvolutionParameteri)
|
||||
glConvolutionParameteri(target, pname, params);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL12
|
||||
* Method: glConvolutionParameteriv
|
||||
* Signature: (III)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL12_glConvolutionParameteriv
|
||||
(JNIEnv *env, jclass clazz, jint target, jint pname, jobject buffer)
|
||||
{
|
||||
CHECK_EXISTS(glConvolutionParameteriv)
|
||||
const GLint *address = (const GLint *)env->GetDirectBufferAddress(buffer);
|
||||
glConvolutionParameteriv(target, pname, address);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL12
|
||||
* Method: glCopyConvolutionFilter1D
|
||||
* Signature: (IIIII)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL12_glCopyConvolutionFilter1D
|
||||
(JNIEnv *env, jclass clazz, jint target, jint internalformat, jint x, jint y, jint width)
|
||||
{
|
||||
CHECK_EXISTS(glCopyConvolutionFilter1D)
|
||||
glCopyConvolutionFilter1D(target, internalformat, x, y, width);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL12
|
||||
* Method: glCopyConvolutionFilter2D
|
||||
* Signature: (IIIIII)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL12_glCopyConvolutionFilter2D
|
||||
(JNIEnv *env, jclass clazz, jint target, jint internalformat, jint x, jint y, jint width, jint height)
|
||||
{
|
||||
CHECK_EXISTS(glCopyConvolutionFilter2D)
|
||||
glCopyConvolutionFilter2D(target, internalformat, x, y, width, height);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL12
|
||||
* Method: glGetConvolutionFilter
|
||||
* Signature: (IIII)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL12_glGetConvolutionFilter
|
||||
(JNIEnv *env, jclass clazz, jint target, jint format, jint type, jobject buffer)
|
||||
{
|
||||
CHECK_EXISTS(glGetConvolutionFilter)
|
||||
void *address = (void *)env->GetDirectBufferAddress(buffer);
|
||||
glGetConvolutionFilter(target, format, type, address);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL12
|
||||
* Method: glGetConvolutionParameterfv
|
||||
* Signature: (III)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL12_glGetConvolutionParameterfv
|
||||
(JNIEnv *env, jclass clazz, jint target, jint pname, jobject buffer)
|
||||
{
|
||||
CHECK_EXISTS(glGetConvolutionParameterfv)
|
||||
GLfloat *address = (GLfloat *)env->GetDirectBufferAddress(buffer);
|
||||
glGetConvolutionParameterfv(target, pname, address);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL12
|
||||
* Method: glGetConvolutionParameteriv
|
||||
* Signature: (III)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL12_glGetConvolutionParameteriv
|
||||
(JNIEnv *env, jclass clazz, jint target, jint pname, jobject buffer)
|
||||
{
|
||||
CHECK_EXISTS(glGetConvolutionParameteriv)
|
||||
GLint *address = (GLint *)env->GetDirectBufferAddress(buffer);
|
||||
glGetConvolutionParameteriv(target, pname, address);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL12
|
||||
* Method: glSeparableFilter2D
|
||||
* Signature: (IIIIIIII)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL12_glSeparableFilter2D
|
||||
(JNIEnv *env, jclass clazz, jint target, jint internalformat, jint width, jint height, jint format, jint type, jobject row, jobject column)
|
||||
{
|
||||
CHECK_EXISTS(glSeparableFilter2D)
|
||||
const void *address = (const void *)env->GetDirectBufferAddress(row);
|
||||
const void *address2 = env->GetDirectBufferAddress(column);
|
||||
glSeparableFilter2D(target, internalformat, width, height, format, type, address, address2);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL12
|
||||
* Method: glGetSeparableFilter
|
||||
* Signature: (IIIIII)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL12_glGetSeparableFilter
|
||||
(JNIEnv *env, jclass clazz, jint target, jint format, jint type, jobject row, jobject column, jobject span)
|
||||
{
|
||||
CHECK_EXISTS(glGetSeparableFilter)
|
||||
void *address = (void *)env->GetDirectBufferAddress(row);
|
||||
void *address2 = (void *)env->GetDirectBufferAddress(column);
|
||||
void *address3 = (void *)env->GetDirectBufferAddress(span);
|
||||
glGetSeparableFilter(target, format, type, address, address2, address3);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL12
|
||||
* Method: glDrawRangeElements
|
||||
* Signature: (IIIIII)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL12_glDrawRangeElements
|
||||
(JNIEnv *env, jclass clazz, jint mode, jint start, jint end, jint count, jint type, jobject buffer)
|
||||
{
|
||||
CHECK_EXISTS(glDrawRangeElements)
|
||||
const void *address = (const void *)env->GetDirectBufferAddress(buffer);
|
||||
glDrawRangeElements(mode, start, end, count, type, address);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL12
|
||||
* Method: glTexImage3D
|
||||
* Signature: (IIIIIIIIII)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL12_glTexImage3D
|
||||
(JNIEnv *env, jclass clazz, jint target, jint level, jint internalformat, jint width, jint height, jint depth, jint border, jint format, jint type, jobject buffer)
|
||||
{
|
||||
CHECK_EXISTS(glTexImage3D)
|
||||
const void *address = (const void *)env->GetDirectBufferAddress(buffer);
|
||||
glTexImage3D(target, level, internalformat, width, height, depth, border, format, type, address);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL12
|
||||
* Method: glTexSubImage3D
|
||||
* Signature: (IIIIIIIIIII)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL12_glTexSubImage3D
|
||||
(JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint yoffset, jint zoffset, jint width, jint height, jint depth, jint format, jint type, jobject buffer)
|
||||
{
|
||||
CHECK_EXISTS(glTexSubImage3D)
|
||||
const void *address = (const void *)env->GetDirectBufferAddress(buffer);
|
||||
glTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, address);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL12
|
||||
* Method: glCopyTexSubImage3D
|
||||
* Signature: (IIIIIIIII)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL12_glCopyTexSubImage3D
|
||||
(JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint yoffset, jint zoffset, jint x, jint y, jint width, jint height)
|
||||
{
|
||||
CHECK_EXISTS(glCopyTexSubImage3D)
|
||||
glCopyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, height);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
|
@ -0,0 +1,447 @@
|
|||
/*
|
||||
* Copyright (c) 2002 Light Weight Java Game Library 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 'Light Weight Java Game Library' 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.
|
||||
*/
|
||||
|
||||
/**
|
||||
* $Id$
|
||||
*
|
||||
* Core OpenGL functions.
|
||||
*
|
||||
* @author cix_foo <cix_foo@users.sourceforge.net>
|
||||
* @version $Revision$
|
||||
*/
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
#include "org_lwjgl_opengl_CoreGL13.h"
|
||||
#include "checkGLerror.h"
|
||||
#include "extgl.h"
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL13
|
||||
* Method: glActiveTexture
|
||||
* Signature: (I)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL13_glActiveTexture
|
||||
(JNIEnv *env, jclass clazz, jint texture)
|
||||
{
|
||||
CHECK_EXISTS(glActiveTexture)
|
||||
glActiveTexture(texture);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL13
|
||||
* Method: glClientActiveTexture
|
||||
* Signature: (I)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL13_glClientActiveTexture
|
||||
(JNIEnv *env, jclass clazz, jint texture)
|
||||
{
|
||||
CHECK_EXISTS(glClientActiveTexture)
|
||||
glClientActiveTexture(texture);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL13
|
||||
* Method: glCompressedTexImage1D
|
||||
* Signature: (IIIIIII)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL13_glCompressedTexImage1D
|
||||
(JNIEnv *env, jclass clazz, jint target, jint level, jint internalformat, jint width, jint border, jint imagesize, jobject buffer)
|
||||
{
|
||||
CHECK_EXISTS(glCompressedTexImage1D)
|
||||
const void *address = (const void *)env->GetDirectBufferAddress(buffer);
|
||||
glCompressedTexImage1D(target, level, internalformat, width, border, imagesize, address);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL13
|
||||
* Method: glCompressedTexImage2D
|
||||
* Signature: (IIIIIIII)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL13_glCompressedTexImage2D
|
||||
(JNIEnv *env, jclass clazz, jint target, jint level, jint internalformat, jint width, jint height, jint border, jint imagesize, jobject buffer)
|
||||
{
|
||||
CHECK_EXISTS(glCompressedTexImage2D)
|
||||
const void *address = (const void *)env->GetDirectBufferAddress(buffer);
|
||||
glCompressedTexImage2D(target, level, internalformat, width, height, border, imagesize, address);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL13
|
||||
* Method: glCompressedTexImage3D
|
||||
* Signature: (IIIIIIIII)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL13_glCompressedTexImage3D
|
||||
(JNIEnv *env, jclass clazz, jint target, jint level, jint internalformat, jint width, jint height, jint depth, jint border, jint imagesize, jobject buffer)
|
||||
{
|
||||
CHECK_EXISTS(glCompressedTexImage3D)
|
||||
const void *address = (const void *)env->GetDirectBufferAddress(buffer);
|
||||
glCompressedTexImage3D(target, level, internalformat, width, height, depth, border, imagesize, address);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL13
|
||||
* Method: glCompressedTexSubImage1D
|
||||
* Signature: (IIIIIII)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL13_glCompressedTexSubImage1D
|
||||
(JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint width, jint format, jint imagesize, jobject buffer)
|
||||
{
|
||||
CHECK_EXISTS(glCompressedTexSubImage1D)
|
||||
const void *address = (const void *)env->GetDirectBufferAddress(buffer);
|
||||
glCompressedTexSubImage1D(target, level, xoffset, width, format, imagesize, address);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL13
|
||||
* Method: glCompressedTexSubImage2D
|
||||
* Signature: (IIIIIIIII)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL13_glCompressedTexSubImage2D
|
||||
(JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint yoffset, jint width, jint height, jint format, jint imagesize, jobject buffer)
|
||||
{
|
||||
CHECK_EXISTS(glCompressedTexSubImage2D)
|
||||
const void *address = (const void *)env->GetDirectBufferAddress(buffer);
|
||||
glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imagesize, address);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL13
|
||||
* Method: glCompressedTexSubImage3D
|
||||
* Signature: (IIIIIIIIIII)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL13_glCompressedTexSubImage3D
|
||||
(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)
|
||||
{
|
||||
CHECK_EXISTS(glCompressedTexSubImage3D)
|
||||
const void *address = (const void *)env->GetDirectBufferAddress(buffer);
|
||||
glCompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imagesize, address);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL13
|
||||
* Method: glGetCompressedTexImage
|
||||
* Signature: (III)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL13_glGetCompressedTexImage
|
||||
(JNIEnv *env, jclass clazz, jint target, jint lod, jobject buffer)
|
||||
{
|
||||
CHECK_EXISTS(glGetCompressedTexImage)
|
||||
void *address = (void *)env->GetDirectBufferAddress(buffer);
|
||||
glGetCompressedTexImage(target, lod, address);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL13
|
||||
* Method: glMultiTexCoord1d
|
||||
* Signature: (ID)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL13_glMultiTexCoord1d
|
||||
(JNIEnv *env, jclass clazz, jint target, jdouble s)
|
||||
{
|
||||
CHECK_EXISTS(glMultiTexCoord1d)
|
||||
glMultiTexCoord1d(target, s);
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL13
|
||||
* Method: glMultiTexCoord1f
|
||||
* Signature: (IF)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL13_glMultiTexCoord1f
|
||||
(JNIEnv *env, jclass clazz, jint target, jfloat s)
|
||||
{
|
||||
CHECK_EXISTS(glMultiTexCoord1f)
|
||||
glMultiTexCoord1f(target, s);
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL13
|
||||
* Method: glMultiTexCoord1i
|
||||
* Signature: (II)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL13_glMultiTexCoord1i
|
||||
(JNIEnv *env, jclass clazz, jint target, jint s)
|
||||
{
|
||||
CHECK_EXISTS(glMultiTexCoord1i)
|
||||
glMultiTexCoord1i(target, s);
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL13
|
||||
* Method: glMultiTexCoord1s
|
||||
* Signature: (IS)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL13_glMultiTexCoord1s
|
||||
(JNIEnv *env, jclass clazz, jint target, jshort s)
|
||||
{
|
||||
CHECK_EXISTS(glMultiTexCoord1s)
|
||||
glMultiTexCoord1s(target, s);
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL13
|
||||
* Method: glMultiTexCoord2d
|
||||
* Signature: (IDD)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL13_glMultiTexCoord2d
|
||||
(JNIEnv *env, jclass clazz, jint target, jdouble s, jdouble t)
|
||||
{
|
||||
CHECK_EXISTS(glMultiTexCoord2d)
|
||||
glMultiTexCoord2d(target, s, t);
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL13
|
||||
* Method: glMultiTexCoord2f
|
||||
* Signature: (IFF)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL13_glMultiTexCoord2f
|
||||
(JNIEnv *env, jclass clazz, jint target, jfloat s, jfloat t)
|
||||
{
|
||||
CHECK_EXISTS(glMultiTexCoord2f)
|
||||
glMultiTexCoord2f(target, s, t);
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL13
|
||||
* Method: glMultiTexCoord2i
|
||||
* Signature: (III)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL13_glMultiTexCoord2i
|
||||
(JNIEnv *env, jclass clazz, jint target, jint s, jint t)
|
||||
{
|
||||
CHECK_EXISTS(glMultiTexCoord2i)
|
||||
glMultiTexCoord2i(target, s, t);
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL13
|
||||
* Method: glMultiTexCoord2s
|
||||
* Signature: (ISS)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL13_glMultiTexCoord2s
|
||||
(JNIEnv *env, jclass clazz, jint target, jshort s, jshort t)
|
||||
{
|
||||
CHECK_EXISTS(glMultiTexCoord2s)
|
||||
glMultiTexCoord2s(target, s, t);
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL13
|
||||
* Method: glMultiTexCoord3d
|
||||
* Signature: (IDDD)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL13_glMultiTexCoord3d
|
||||
(JNIEnv *env, jclass clazz, jint target, jdouble s, jdouble t, jdouble r)
|
||||
{
|
||||
CHECK_EXISTS(glMultiTexCoord3d)
|
||||
glMultiTexCoord3d(target, s, t, r);
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL13
|
||||
* Method: glMultiTexCoord3f
|
||||
* Signature: (IFFF)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL13_glMultiTexCoord3f
|
||||
(JNIEnv *env, jclass clazz, jint target, jfloat s, jfloat t, jfloat r)
|
||||
{
|
||||
CHECK_EXISTS(glMultiTexCoord3f)
|
||||
glMultiTexCoord3f(target, s, t, r);
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL13
|
||||
* Method: glMultiTexCoord3i
|
||||
* Signature: (IIII)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL13_glMultiTexCoord3i
|
||||
(JNIEnv *env, jclass clazz, jint target, jint s, jint t, jint r)
|
||||
{
|
||||
CHECK_EXISTS(glMultiTexCoord3i)
|
||||
glMultiTexCoord3i(target, s, t, r);
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL13
|
||||
* Method: glMultiTexCoord3s
|
||||
* Signature: (ISSS)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL13_glMultiTexCoord3s
|
||||
(JNIEnv *env, jclass clazz, jint target, jshort s, jshort t, jshort r)
|
||||
{
|
||||
CHECK_EXISTS(glMultiTexCoord3s)
|
||||
glMultiTexCoord3s(target, s, t, r);
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL13
|
||||
* Method: glMultiTexCoord4d
|
||||
* Signature: (IDDDD)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL13_glMultiTexCoord4d
|
||||
(JNIEnv *env, jclass clazz, jint target, jdouble s, jdouble t, jdouble r, jdouble q)
|
||||
{
|
||||
CHECK_EXISTS(glMultiTexCoord4d)
|
||||
glMultiTexCoord4d(target, s, t, r, q);
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL13
|
||||
* Method: glMultiTexCoord4f
|
||||
* Signature: (IFFFF)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL13_glMultiTexCoord4f
|
||||
(JNIEnv *env, jclass clazz, jint target, jfloat s, jfloat t, jfloat r, jfloat q)
|
||||
{
|
||||
CHECK_EXISTS(glMultiTexCoord4f)
|
||||
glMultiTexCoord4f(target, s, t, r, q);
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL13
|
||||
* Method: glMultiTexCoord4i
|
||||
* Signature: (IIIII)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL13_glMultiTexCoord4i
|
||||
(JNIEnv *env, jclass clazz, jint target, jint s, jint t, jint r, jint q)
|
||||
{
|
||||
CHECK_EXISTS(glMultiTexCoord4i)
|
||||
glMultiTexCoord4i(target, s, t, r, q);
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL13
|
||||
* Method: glMultiTexCoord4s
|
||||
* Signature: (ISSSS)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL13_glMultiTexCoord4s
|
||||
(JNIEnv *env, jclass clazz, jint target, jshort s, jshort t, jshort r, jshort q)
|
||||
{
|
||||
CHECK_EXISTS(glMultiTexCoord4s)
|
||||
glMultiTexCoord4s(target, s, t, r, q);
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL13
|
||||
* Method: glLoadTransposeMatrixd
|
||||
* Signature: (I)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL13_glLoadTransposeMatrixd
|
||||
(JNIEnv *env, jclass clazz, jobject buffer)
|
||||
{
|
||||
CHECK_EXISTS(glLoadTransposeMatrixd)
|
||||
const GLdouble *address = (const GLdouble *)env->GetDirectBufferAddress(buffer);
|
||||
glLoadTransposeMatrixd(address);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL13
|
||||
* Method: glLoadTransposeMatrixf
|
||||
* Signature: (I)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL13_glLoadTransposeMatrixf
|
||||
(JNIEnv *env, jclass clazz, jobject buffer)
|
||||
{
|
||||
CHECK_EXISTS(glLoadTransposeMatrixf)
|
||||
const GLfloat *address = (const GLfloat *)env->GetDirectBufferAddress(buffer);
|
||||
glLoadTransposeMatrixf(address);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL13
|
||||
* Method: glMultTransposeMatrixd
|
||||
* Signature: (I)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL13_glMultTransposeMatrixd
|
||||
(JNIEnv *env, jclass clazz, jobject buffer)
|
||||
{
|
||||
CHECK_EXISTS(glMultTransposeMatrixd)
|
||||
const GLdouble *address = (const GLdouble *)env->GetDirectBufferAddress(buffer);
|
||||
glMultTransposeMatrixd(address);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL13
|
||||
* Method: glMultTransposeMatrixf
|
||||
* Signature: (I)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL13_glMultTransposeMatrixf
|
||||
(JNIEnv *env, jclass clazz, jobject buffer)
|
||||
{
|
||||
CHECK_EXISTS(glMultTransposeMatrixf)
|
||||
const GLfloat *address = (const GLfloat *)env->GetDirectBufferAddress(buffer);
|
||||
glMultTransposeMatrixf(address);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL13
|
||||
* Method: glSampleCoverage
|
||||
* Signature: (FZ)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL13_glSampleCoverage
|
||||
(JNIEnv *env, jclass clazz, jfloat value, jboolean invert)
|
||||
{
|
||||
CHECK_EXISTS(glSampleCoverage)
|
||||
glSampleCoverage(value, invert);
|
||||
CHECK_GL_ERROR
|
||||
}
|
|
@ -0,0 +1,340 @@
|
|||
/*
|
||||
* Copyright (c) 2002 Light Weight Java Game Library 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 'Light Weight Java Game Library' 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.
|
||||
*/
|
||||
|
||||
/**
|
||||
* $Id$
|
||||
*
|
||||
* Core OpenGL functions.
|
||||
*
|
||||
* @author cix_foo <cix_foo@users.sourceforge.net>
|
||||
* @version $Revision$
|
||||
*/
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
#include "org_lwjgl_opengl_CoreGL14.h"
|
||||
#include "checkGLerror.h"
|
||||
#include "extgl.h"
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL14
|
||||
* Method: glFogCoordf
|
||||
* Signature: (F)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL14_glFogCoordf
|
||||
(JNIEnv *env, jclass clazz, jfloat f) {
|
||||
CHECK_EXISTS(glFogCoordf)
|
||||
glFogCoordf(f);
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL14
|
||||
* Method: glFogCoordd
|
||||
* Signature: (D)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL14_glFogCoordd
|
||||
(JNIEnv *env, jclass clazz, jdouble d) {
|
||||
CHECK_EXISTS(glFogCoordd)
|
||||
glFogCoordd(d);
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL14
|
||||
* Method: glFogCoordPointer
|
||||
* Signature: (IILjava/nio/Buffer;)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL14_glFogCoordPointer
|
||||
(JNIEnv *env, jclass clazz, jint p1, jint p2, jobject buffer) {
|
||||
CHECK_EXISTS(glFogCoordPointer)
|
||||
GLvoid *address = (GLvoid *)env->GetDirectBufferAddress(buffer);
|
||||
glFogCoordPointer(p1, p2, address);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL14
|
||||
* Method: glMultiDrawArrays
|
||||
* Signature: (IIII)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL14_glMultiDrawArrays
|
||||
(JNIEnv *env, jclass clazz, jint mode, jobject first, jobject count, jint primcount) {
|
||||
CHECK_EXISTS(glMultiDrawArrays)
|
||||
GLint *address = (GLint *)env->GetDirectBufferAddress(first);
|
||||
GLsizei *address2 = (GLsizei *)env->GetDirectBufferAddress(count);
|
||||
glMultiDrawArrays(mode, address, address2, (GLsizei)primcount);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL14
|
||||
* Method: glMultiDrawElements
|
||||
* Signature: (IIIII)V
|
||||
*/
|
||||
/*JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL14_glMultiDrawElements
|
||||
(JNIEnv *env, jclass clazz, jint mode, jobject count, jint type, jobject indices, jint primcount) {
|
||||
CHECK_EXISTS(glMultiDrawElements)
|
||||
const GLsizei *address = (const GLsizei *)env->GetDirectBufferAddress(count);
|
||||
const void *address2 = (const void *)env->GetDirectBufferAddress(indices);
|
||||
glMultiDrawElements(mode, address, type, address2, primcount);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL14
|
||||
* Method: glPointParameterf
|
||||
* Signature: (IF)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL14_glPointParameterf
|
||||
(JNIEnv *env, jclass clazz, jint p1, jfloat p2) {
|
||||
CHECK_EXISTS(glPointParameterf)
|
||||
glPointParameterf(p1, p2);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL14
|
||||
* Method: glPointParameterfv
|
||||
* Signature: (ILjava/nio/FloatBuffer;)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL14_glPointParameterfv
|
||||
(JNIEnv *env, jclass clazz, jint p1, jobject buffer) {
|
||||
CHECK_EXISTS(glPointParameterfv)
|
||||
GLfloat *address = (GLfloat *)env->GetDirectBufferAddress(buffer);
|
||||
glPointParameterfv(p1, address);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL14
|
||||
* Method: glSecondaryColor3b
|
||||
* Signature: (BBB)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL14_glSecondaryColor3b
|
||||
(JNIEnv *env, jclass clazz, jbyte p1, jbyte p2, jbyte p3) {
|
||||
CHECK_EXISTS(glSecondaryColor3b)
|
||||
glSecondaryColor3b(p1, p2, p3);
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL14
|
||||
* Method: glSecondaryColor3d
|
||||
* Signature: (DDD)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL14_glSecondaryColor3d
|
||||
(JNIEnv *env, jclass clazz, jdouble p1, jdouble p2, jdouble p3) {
|
||||
CHECK_EXISTS(glSecondaryColor3d)
|
||||
glSecondaryColor3d(p1, p2, p3);
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL14
|
||||
* Method: glSecondaryColor3f
|
||||
* Signature: (FFF)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL14_glSecondaryColor3f
|
||||
(JNIEnv *env, jclass clazz, jfloat p1, jfloat p2, jfloat p3) {
|
||||
CHECK_EXISTS(glSecondaryColor3f)
|
||||
glSecondaryColor3f(p1, p2, p3);
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL14
|
||||
* Method: glSecondaryColor3i
|
||||
* Signature: (III)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL14_glSecondaryColor3i
|
||||
(JNIEnv *env, jclass clazz, jint p1, jint p2, jint p3) {
|
||||
CHECK_EXISTS(glSecondaryColor3i)
|
||||
glSecondaryColor3i(p1, p2, p3);
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL14
|
||||
* Method: glSecondaryColor3s
|
||||
* Signature: (SSS)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL14_glSecondaryColor3s
|
||||
(JNIEnv *env, jclass clazz, jshort p1, jshort p2, jshort p3) {
|
||||
CHECK_EXISTS(glSecondaryColor3s)
|
||||
glSecondaryColor3s(p1, p2, p3);
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL14
|
||||
* Method: glSecondaryColor3ub
|
||||
* Signature: (BBB)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL14_glSecondaryColor3ub
|
||||
(JNIEnv *env, jclass clazz, jbyte p1, jbyte p2, jbyte p3) {
|
||||
CHECK_EXISTS(glSecondaryColor3ub)
|
||||
glSecondaryColor3ub(p1, p2, p3);
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL14
|
||||
* Method: glSecondaryColor3ui
|
||||
* Signature: (III)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL14_glSecondaryColor3ui
|
||||
(JNIEnv *env, jclass clazz, jint p1, jint p2, jint p3) {
|
||||
CHECK_EXISTS(glSecondaryColor3ui)
|
||||
glSecondaryColor3ui(p1, p2, p3);
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL14
|
||||
* Method: glSecondaryColor3us
|
||||
* Signature: (SSS)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL14_glSecondaryColor3us
|
||||
(JNIEnv *env, jclass clazz, jshort p1, jshort p2, jshort p3) {
|
||||
CHECK_EXISTS(glSecondaryColor3us)
|
||||
glSecondaryColor3us(p1, p2, p3);
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL14
|
||||
* Method: glSecondaryColorPointer
|
||||
* Signature: (IIILjava/nio/Buffer;)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL14_glSecondaryColorPointer
|
||||
(JNIEnv *env, jclass clazz, jint p1, jint p2, jint p3, jobject buffer) {
|
||||
CHECK_EXISTS(glSecondaryColorPointer)
|
||||
GLvoid *address = (GLvoid *)env->GetDirectBufferAddress(buffer);
|
||||
glSecondaryColorPointer(p1, p2, p3, address);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL14
|
||||
* Method: glBlendFuncSeparate
|
||||
* Signature: (IIII)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL14_glBlendFuncSeparate
|
||||
(JNIEnv *env, jclass clazz, jint p1, jint p2, jint p3, jint p4) {
|
||||
CHECK_EXISTS(glBlendFuncSeparate)
|
||||
glBlendFuncSeparate(p1, p2, p3, p4);
|
||||
CHECK_GL_ERROR
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL14
|
||||
* Method: glWindowPos2d
|
||||
* Signature: (DD)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL14_glWindowPos2d
|
||||
(JNIEnv *env, jclass clazz, jdouble p1, jdouble p2) {
|
||||
CHECK_EXISTS(glWindowPos2d);
|
||||
glWindowPos2d(p1, p2);
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL14
|
||||
* Method: glWindowPos2f
|
||||
* Signature: (FF)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL14_glWindowPos2f
|
||||
(JNIEnv *env, jclass clazz, jfloat p1, jfloat p2) {
|
||||
CHECK_EXISTS(glWindowPos2f);
|
||||
glWindowPos2f(p1, p2);
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL14
|
||||
* Method: glWindowPos2i
|
||||
* Signature: (II)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL14_glWindowPos2i
|
||||
(JNIEnv *env, jclass clazz, jint p1, jint p2) {
|
||||
CHECK_EXISTS(glWindowPos2i)
|
||||
glWindowPos2i(p1, p2);
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL14
|
||||
* Method: glWindowPos2s
|
||||
* Signature: (SS)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL14_glWindowPos2s
|
||||
(JNIEnv *env, jclass clazz, jshort p1, jshort p2) {
|
||||
CHECK_EXISTS(glWindowPos2s)
|
||||
glWindowPos2s(p1, p2);
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL14
|
||||
* Method: glWindowPos3d
|
||||
* Signature: (DDD)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL14_glWindowPos3d
|
||||
(JNIEnv *env, jclass clazz, jdouble p1, jdouble p2, jdouble p3) {
|
||||
CHECK_EXISTS(glWindowPos3d)
|
||||
glWindowPos3d(p1, p2, p3);
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL14
|
||||
* Method: glWindowPos3f
|
||||
* Signature: (FFF)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL14_glWindowPos3f
|
||||
(JNIEnv *env, jclass clazz, jfloat p1, jfloat p2, jfloat p3) {
|
||||
CHECK_EXISTS(glWindowPos3f)
|
||||
glWindowPos3f(p1, p2, p3);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL14
|
||||
* Method: glWindowPos3i
|
||||
* Signature: (III)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL14_glWindowPos3i
|
||||
(JNIEnv *env, jclass clazz, jint p1, jint p2, jint p3) {
|
||||
CHECK_EXISTS(glWindowPos3i)
|
||||
glWindowPos3i(p1, p2, p3);
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_lwjgl_opengl_CoreGL14
|
||||
* Method: glWindowPos3s
|
||||
* Signature: (SSS)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL14_glWindowPos3s
|
||||
(JNIEnv *env, jclass clazz, jshort p1, jshort p2, jshort p3) {
|
||||
CHECK_EXISTS(glWindowPos3s);
|
||||
glWindowPos3s(p1, p2, p3);
|
||||
}
|
||||
|
Loading…
Reference in New Issue