Update of /cvsroot/java-game-lib/LWJGL/src/native/common
In directory sc8-pr-cvs1:/tmp/cvs-serv17197/common
Modified Files:
checkGLerror.h
Added Files:
extgl.c extgl.h
Log Message:
Updated extgl.h/c and checkGLerror.h
--- NEW FILE: extgl.c ---
CVS Browser:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/extgl.c
/* ----------------------------------------------------------------------------
Copyright (c) 2001-2002, Lev Povalahev
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.
* The name of the author 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,
[...2182 lines suppressed...]
#ifdef _WIN32
extgl_InitializeWGL();
#endif
SupportedExtensions = extgl_Extensions;
return extgl_error;
}
/* deprecated function please do not use it, use extgl_Initialize() instead */
int glInitialize()
{
return extgl_Initialize();
}
/* turn on the warning for the borland compiler*/
#ifdef __BORLANDC__
#pragma warn .8064
#pragma warn .8065
#endif /* __BORLANDC__ */
--- NEW FILE: extgl.h ---
CVS Browser:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/extgl.h
/* Small parts were taken from glext.h, here's the lisence: */
/*
** License Applicability. Except to the extent portions of this file are
** made subject to an alternative license as permitted in the SGI Free
** Software License B, Version 1.1 (the "License"), the contents of this
** file are subject only to the provisions of the License. You may not use
** this file except in compliance with the License. You may obtain a copy
** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
**
** http://oss.sgi.com/projects/FreeB
**
** Note that, as provided in the License, the Software is distributed on an
** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
** PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
**
[...4958 lines suppressed...]
int SGIX_depth_texture;
int OpenGL12;
int OpenGL13;
int OpenGL14;
};
extern struct ExtensionTypes extgl_Extensions;
extern struct ExtensionTypes SupportedExtensions; /* deprecated, please do not use */
/* initializes everything, call this right after the rc is created. the function returns 0 if successful */
int extgl_Initialize();
int glInitialize(); /* deprecated, please do not use */
#ifdef __cplusplus
}
#endif
#endif /* __EXTGL_H__ */
Index: checkGLerror.h
CVS Browser:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/checkGLerror.h
===================================================================
RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/checkGLerror.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- checkGLerror.h 15 Aug 2002 16:11:43 -0000 1.3
+++ checkGLerror.h 19 Nov 2002 07:42:54 -0000 1.4
@@ -13,7 +13,7 @@
#ifdef _DEBUG
#include <jni.h>
-#include <gl/glu.h>
+#include <GL/glu.h>
#define CHECK_GL_ERROR \
{ \
@@ -31,4 +31,4 @@
#endif /* _DEBUG */
-#endif /* _CHECKGLERROR_H_INCLUDED_ */
\ No newline at end of file
+#endif /* _CHECKGLERROR_H_INCLUDED_ */
|