Update of /cvsroot/java-game-lib/LWJGL/src/native/common
In directory sc8-pr-cvs1:/tmp/cvs-serv18214/common
Added Files:
org_lwjgl_opengl_CoreGL.cpp org_lwjgl_opengl_GL.cpp
Log Message:
Moved org_lwjgl_opengl_GL.cpp to common (again)
--- NEW FILE: org_lwjgl_opengl_CoreGL.cpp ---
CVS Browser:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/org_lwjgl_opengl_CoreGL.cpp
/*
* 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.
*
[...4309 lines suppressed...]
*/
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_multTransposeMatrixf
(JNIEnv *env, jobject obj, jint m)
{
glMultTransposeMatrixf((float *)m);
CHECK_GL_ERROR
}
/*
* Class: org_lwjgl_opengl_CoreGL
* Method: sampleCoverage
* Signature: (FZ)V
*/
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_CoreGL_sampleCoverage
(JNIEnv *env, jobject obj, jfloat value, jboolean invert)
{
glSampleCoverage(value, invert);
CHECK_GL_ERROR
}
--- NEW FILE: org_lwjgl_opengl_GL.cpp ---
CVS Browser:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/org_lwjgl_opengl_GL.cpp
/*
* 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.
*
[...4123 lines suppressed...]
}
/*
* Class: org_lwjgl_opengl_GL
* Method: checkWGLExtensionsString
*/
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL_checkWGLExtensionsString(JNIEnv * env, jclass clazz)
{
#ifdef _WIN32
jfieldID fid_WGL_ARB_extensions_string = env->GetStaticFieldID(clazz, "WGL_ARB_extensions_string", "Z");
jfieldID fid_WGL_EXT_extensions_string = env->GetStaticFieldID(clazz, "WGL_EXT_extensions_string", "Z");
if (wglGetExtensionsStringARB)
env->SetStaticBooleanField(clazz, fid_WGL_ARB_extensions_string, JNI_TRUE);
if (wglGetExtensionsStringEXT)
env->SetStaticBooleanField(clazz, fid_WGL_EXT_extensions_string, JNI_TRUE);
#endif
}
|