harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apetre...@apache.org
Subject svn commit: r482341 [2/2] - in /harmony/enhanced/classlib/trunk/modules: awt/ awt/src/main/java/common/org/apache/harmony/awt/gl/opengl/ awt/src/main/java/unix/org/apache/harmony/awt/gl/linux/ awt/src/main/java/unix/org/apache/harmony/awt/nativebridge/...
Date Mon, 04 Dec 2006 20:26:31 GMT
Added: harmony/enhanced/classlib/trunk/modules/awt/src/main/native/oglwrapper/shared/org_apache_harmony_awt_gl_opengl_GL.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/native/oglwrapper/shared/org_apache_harmony_awt_gl_opengl_GL.cpp?view=auto&rev=482341
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/awt/src/main/native/oglwrapper/shared/org_apache_harmony_awt_gl_opengl_GL.cpp (added)
+++ harmony/enhanced/classlib/trunk/modules/awt/src/main/native/oglwrapper/shared/org_apache_harmony_awt_gl_opengl_GL.cpp Mon Dec  4 12:26:28 2006
@@ -0,0 +1,581 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+ /**
+ * @author Oleg V. Khaschansky
+ * @version $Revision$
+ */
+/* DO NOT EDIT THIS FILE - it is machine generated */
+
+#include "org_apache_harmony_awt_gl_opengl_GL.h"
+
+static libHandler libGL;
+static libHandler libGLU;
+JNIEXPORT void JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_init (JNIEnv * env, jclass cls) {
+    LOAD_LIB(libGL, GL);
+    LOAD_LIB(libGLU, GLU);
+    INIT_GL_GET_PROC_ADDRESS
+}
+
+
+void (__stdcall* p_nbridge_glVertexPointer) (int, int, int, void *) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glVertexPointer( JNIEnv *env, jobject self, jint size, jint type, jint stride, jlong pointer) {
+    if (p_nbridge_glVertexPointer == NULL) {
+        p_nbridge_glVertexPointer = (void (__stdcall*) (int, int, int, void *)) FindFunction(libGL, "glVertexPointer");
+    }
+    (* p_nbridge_glVertexPointer)((int) size, (int) type, (int) stride, (void *) pointer);
+}
+
+void (__stdcall* p_nbridge_glPixelStoref) (int, float) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glPixelStoref( JNIEnv *env, jobject self, jint pname, jfloat param) {
+    if (p_nbridge_glPixelStoref == NULL) {
+        p_nbridge_glPixelStoref = (void (__stdcall*) (int, float)) FindFunction(libGL, "glPixelStoref");
+    }
+    (* p_nbridge_glPixelStoref)((int) pname, (float) param);
+}
+
+void (__stdcall* p_nbridge_glRectd) (double, double, double, double) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glRectd( JNIEnv *env, jobject self, jdouble x1, jdouble y1, jdouble x2, jdouble y2) {
+    if (p_nbridge_glRectd == NULL) {
+        p_nbridge_glRectd = (void (__stdcall*) (double, double, double, double)) FindFunction(libGL, "glRectd");
+    }
+    (* p_nbridge_glRectd)((double) x1, (double) y1, (double) x2, (double) y2);
+}
+
+void (__stdcall* p_nbridge_glTranslated) (double, double, double) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glTranslated( JNIEnv *env, jobject self, jdouble x, jdouble y, jdouble z) {
+    if (p_nbridge_glTranslated == NULL) {
+        p_nbridge_glTranslated = (void (__stdcall*) (double, double, double)) FindFunction(libGL, "glTranslated");
+    }
+    (* p_nbridge_glTranslated)((double) x, (double) y, (double) z);
+}
+
+void (__stdcall* p_nbridge_glLineStipple) (int, short) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glLineStipple( JNIEnv *env, jobject self, jint factor, jshort pattern) {
+    if (p_nbridge_glLineStipple == NULL) {
+        p_nbridge_glLineStipple = (void (__stdcall*) (int, short)) FindFunction(libGL, "glLineStipple");
+    }
+    (* p_nbridge_glLineStipple)((int) factor, (short) pattern);
+}
+
+void (__stdcall* p_nbridge_glBlendFunc) (int, int) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glBlendFunc( JNIEnv *env, jobject self, jint sfactor, jint dfactor) {
+    if (p_nbridge_glBlendFunc == NULL) {
+        p_nbridge_glBlendFunc = (void (__stdcall*) (int, int)) FindFunction(libGL, "glBlendFunc");
+    }
+    (* p_nbridge_glBlendFunc)((int) sfactor, (int) dfactor);
+}
+
+void (__stdcall* p_nbridge_glColor4ubv) (void *) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glColor4ubv( JNIEnv *env, jobject self, jlong v) {
+    if (p_nbridge_glColor4ubv == NULL) {
+        p_nbridge_glColor4ubv = (void (__stdcall*) (void *)) FindFunction(libGL, "glColor4ubv");
+    }
+    (* p_nbridge_glColor4ubv)((void *) v);
+}
+
+void (__stdcall* p_nbridge_glTexImage1D) (int, int, int, int, int, int, int, void *) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glTexImage1D( JNIEnv *env, jobject self, jint target, jint level, jint internalformat, jint width, jint border, jint format, jint type, jlong pixels) {
+    if (p_nbridge_glTexImage1D == NULL) {
+        p_nbridge_glTexImage1D = (void (__stdcall*) (int, int, int, int, int, int, int, void *)) FindFunction(libGL, "glTexImage1D");
+    }
+    (* p_nbridge_glTexImage1D)((int) target, (int) level, (int) internalformat, (int) width, (int) border, (int) format, (int) type, (void *) pixels);
+}
+
+void (__stdcall* p_nbridge_gluOrtho2D) (double, double, double, double) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_gluOrtho2D( JNIEnv *env, jobject self, jdouble left, jdouble right, jdouble bottom, jdouble top) {
+    if (p_nbridge_gluOrtho2D == NULL) {
+        p_nbridge_gluOrtho2D = (void (__stdcall*) (double, double, double, double)) FindFunction(libGLU, "gluOrtho2D");
+    }
+    (* p_nbridge_gluOrtho2D)((double) left, (double) right, (double) bottom, (double) top);
+}
+
+void (__stdcall* p_nbridge_glDrawArrays) (int, int, int) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glDrawArrays( JNIEnv *env, jobject self, jint mode, jint first, jint count) {
+    if (p_nbridge_glDrawArrays == NULL) {
+        p_nbridge_glDrawArrays = (void (__stdcall*) (int, int, int)) FindFunction(libGL, "glDrawArrays");
+    }
+    (* p_nbridge_glDrawArrays)((int) mode, (int) first, (int) count);
+}
+
+void (__stdcall* p_nbridge_glPixelStorei) (int, int) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glPixelStorei( JNIEnv *env, jobject self, jint pname, jint param) {
+    if (p_nbridge_glPixelStorei == NULL) {
+        p_nbridge_glPixelStorei = (void (__stdcall*) (int, int)) FindFunction(libGL, "glPixelStorei");
+    }
+    (* p_nbridge_glPixelStorei)((int) pname, (int) param);
+}
+
+void (__stdcall* p_nbridge_glTexParameteri) (int, int, int) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glTexParameteri( JNIEnv *env, jobject self, jint target, jint pname, jint param) {
+    if (p_nbridge_glTexParameteri == NULL) {
+        p_nbridge_glTexParameteri = (void (__stdcall*) (int, int, int)) FindFunction(libGL, "glTexParameteri");
+    }
+    (* p_nbridge_glTexParameteri)((int) target, (int) pname, (int) param);
+}
+
+void (__stdcall* p_nbridge_glRotated) (double, double, double, double) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glRotated( JNIEnv *env, jobject self, jdouble angle, jdouble x, jdouble y, jdouble z) {
+    if (p_nbridge_glRotated == NULL) {
+        p_nbridge_glRotated = (void (__stdcall*) (double, double, double, double)) FindFunction(libGL, "glRotated");
+    }
+    (* p_nbridge_glRotated)((double) angle, (double) x, (double) y, (double) z);
+}
+
+void (__stdcall* p_nbridge_glGetIntegerv) (int, void *) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glGetIntegerv( JNIEnv *env, jobject self, jint pname, jlong params) {
+    if (p_nbridge_glGetIntegerv == NULL) {
+        p_nbridge_glGetIntegerv = (void (__stdcall*) (int, void *)) FindFunction(libGL, "glGetIntegerv");
+    }
+    (* p_nbridge_glGetIntegerv)((int) pname, (void *) params);
+}
+
+void (__stdcall* p_nbridge_glTexGendv) (int, int, void *) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glTexGendv( JNIEnv *env, jobject self, jint coord, jint pname, jlong params) {
+    if (p_nbridge_glTexGendv == NULL) {
+        p_nbridge_glTexGendv = (void (__stdcall*) (int, int, void *)) FindFunction(libGL, "glTexGendv");
+    }
+    (* p_nbridge_glTexGendv)((int) coord, (int) pname, (void *) params);
+}
+
+void (__stdcall* p_nbridge_glTexCoord2d) (double, double) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glTexCoord2d( JNIEnv *env, jobject self, jdouble s, jdouble t) {
+    if (p_nbridge_glTexCoord2d == NULL) {
+        p_nbridge_glTexCoord2d = (void (__stdcall*) (double, double)) FindFunction(libGL, "glTexCoord2d");
+    }
+    (* p_nbridge_glTexCoord2d)((double) s, (double) t);
+}
+
+void (__stdcall* p_nbridge_glPixelTransferf) (int, float) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glPixelTransferf( JNIEnv *env, jobject self, jint pname, jfloat param) {
+    if (p_nbridge_glPixelTransferf == NULL) {
+        p_nbridge_glPixelTransferf = (void (__stdcall*) (int, float)) FindFunction(libGL, "glPixelTransferf");
+    }
+    (* p_nbridge_glPixelTransferf)((int) pname, (float) param);
+}
+
+void (__stdcall* p_nbridge_glCopyTexSubImage2D) (int, int, int, int, int, int, int, int) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glCopyTexSubImage2D( JNIEnv *env, jobject self, jint target, jint level, jint xoffset, jint yoffset, jint x, jint y, jint width, jint height) {
+    if (p_nbridge_glCopyTexSubImage2D == NULL) {
+        p_nbridge_glCopyTexSubImage2D = (void (__stdcall*) (int, int, int, int, int, int, int, int)) FindFunction(libGL, "glCopyTexSubImage2D");
+    }
+    (* p_nbridge_glCopyTexSubImage2D)((int) target, (int) level, (int) xoffset, (int) yoffset, (int) x, (int) y, (int) width, (int) height);
+}
+
+void (__stdcall* p_nbridge_glEnd) (void) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glEnd( JNIEnv *env, jobject self) {
+    if (p_nbridge_glEnd == NULL) {
+        p_nbridge_glEnd = (void (__stdcall*) (void)) FindFunction(libGL, "glEnd");
+    }
+    (* p_nbridge_glEnd)();
+}
+
+void (__stdcall* p_nbridge_glColorMask) (char, char, char, char) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glColorMask( JNIEnv *env, jobject self, jbyte red, jbyte green, jbyte blue, jbyte alpha) {
+    if (p_nbridge_glColorMask == NULL) {
+        p_nbridge_glColorMask = (void (__stdcall*) (char, char, char, char)) FindFunction(libGL, "glColorMask");
+    }
+    (* p_nbridge_glColorMask)((char) red, (char) green, (char) blue, (char) alpha);
+}
+
+void (__stdcall* p_nbridge_glFlush) (void) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glFlush( JNIEnv *env, jobject self) {
+    if (p_nbridge_glFlush == NULL) {
+        p_nbridge_glFlush = (void (__stdcall*) (void)) FindFunction(libGL, "glFlush");
+    }
+    (* p_nbridge_glFlush)();
+}
+
+void (__stdcall* p_nbridge_glMatrixMode) (int) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glMatrixMode( JNIEnv *env, jobject self, jint mode) {
+    if (p_nbridge_glMatrixMode == NULL) {
+        p_nbridge_glMatrixMode = (void (__stdcall*) (int)) FindFunction(libGL, "glMatrixMode");
+    }
+    (* p_nbridge_glMatrixMode)((int) mode);
+}
+
+void (__stdcall* p_nbridge_glTexEnvf) (int, int, float) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glTexEnvf( JNIEnv *env, jobject self, jint target, jint pname, jfloat param) {
+    if (p_nbridge_glTexEnvf == NULL) {
+        p_nbridge_glTexEnvf = (void (__stdcall*) (int, int, float)) FindFunction(libGL, "glTexEnvf");
+    }
+    (* p_nbridge_glTexEnvf)((int) target, (int) pname, (float) param);
+}
+
+void (__stdcall* p_nbridge_glPixelZoom) (float, float) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glPixelZoom( JNIEnv *env, jobject self, jfloat xfactor, jfloat yfactor) {
+    if (p_nbridge_glPixelZoom == NULL) {
+        p_nbridge_glPixelZoom = (void (__stdcall*) (float, float)) FindFunction(libGL, "glPixelZoom");
+    }
+    (* p_nbridge_glPixelZoom)((float) xfactor, (float) yfactor);
+}
+
+void (__stdcall* p_nbridge_glScissor) (int, int, int, int) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glScissor( JNIEnv *env, jobject self, jint x, jint y, jint width, jint height) {
+    if (p_nbridge_glScissor == NULL) {
+        p_nbridge_glScissor = (void (__stdcall*) (int, int, int, int)) FindFunction(libGL, "glScissor");
+    }
+    (* p_nbridge_glScissor)((int) x, (int) y, (int) width, (int) height);
+}
+
+unsigned int  (__stdcall* p_nbridge_glGetError) (void) = NULL;
+
+JNIEXPORT jint  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glGetError( JNIEnv *env, jobject self) {
+    if (p_nbridge_glGetError == NULL) {
+        p_nbridge_glGetError = (unsigned int  (__stdcall*) (void)) FindFunction(libGL, "glGetError");
+    }
+    return (jint) (* p_nbridge_glGetError)();
+}
+
+void (__stdcall* p_nbridge_glDrawPixels) (int, int, int, int, void *) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glDrawPixels( JNIEnv *env, jobject self, jint width, jint height, jint format, jint type, jlong pixels) {
+    if (p_nbridge_glDrawPixels == NULL) {
+        p_nbridge_glDrawPixels = (void (__stdcall*) (int, int, int, int, void *)) FindFunction(libGL, "glDrawPixels");
+    }
+    (* p_nbridge_glDrawPixels)((int) width, (int) height, (int) format, (int) type, (void *) pixels);
+}
+
+void (__stdcall* p_nbridge_glCopyPixels) (int, int, int, int, int) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glCopyPixels( JNIEnv *env, jobject self, jint x, jint y, jint width, jint height, jint type) {
+    if (p_nbridge_glCopyPixels == NULL) {
+        p_nbridge_glCopyPixels = (void (__stdcall*) (int, int, int, int, int)) FindFunction(libGL, "glCopyPixels");
+    }
+    (* p_nbridge_glCopyPixels)((int) x, (int) y, (int) width, (int) height, (int) type);
+}
+
+void (__stdcall* p_nbridge_glBlendFuncSeparate) (int, int, int, int) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glBlendFuncSeparate( JNIEnv *env, jobject self, jint param_0, jint param_1, jint param_2, jint param_3) {
+    if (p_nbridge_glBlendFuncSeparate == NULL) {
+        p_nbridge_glBlendFuncSeparate = (void (__stdcall*) (int, int, int, int)) FindFunction(libGL, "glBlendFuncSeparate");
+    }
+    (* p_nbridge_glBlendFuncSeparate)((int) param_0, (int) param_1, (int) param_2, (int) param_3);
+}
+
+void (__stdcall* p_nbridge_glEnableClientState) (int) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glEnableClientState( JNIEnv *env, jobject self, jint array) {
+    if (p_nbridge_glEnableClientState == NULL) {
+        p_nbridge_glEnableClientState = (void (__stdcall*) (int)) FindFunction(libGL, "glEnableClientState");
+    }
+    (* p_nbridge_glEnableClientState)((int) array);
+}
+
+void (__stdcall* p_nbridge_glMultMatrixd) (void *) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glMultMatrixd( JNIEnv *env, jobject self, jlong m) {
+    if (p_nbridge_glMultMatrixd == NULL) {
+        p_nbridge_glMultMatrixd = (void (__stdcall*) (void *)) FindFunction(libGL, "glMultMatrixd");
+    }
+    (* p_nbridge_glMultMatrixd)((void *) m);
+}
+
+void (__stdcall* p_nbridge_glClear) (int) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glClear( JNIEnv *env, jobject self, jint mask) {
+    if (p_nbridge_glClear == NULL) {
+        p_nbridge_glClear = (void (__stdcall*) (int)) FindFunction(libGL, "glClear");
+    }
+    (* p_nbridge_glClear)((int) mask);
+}
+
+void (__stdcall* p_nbridge_glPopMatrix) (void) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glPopMatrix( JNIEnv *env, jobject self) {
+    if (p_nbridge_glPopMatrix == NULL) {
+        p_nbridge_glPopMatrix = (void (__stdcall*) (void)) FindFunction(libGL, "glPopMatrix");
+    }
+    (* p_nbridge_glPopMatrix)();
+}
+
+void (__stdcall* p_nbridge_glColorPointer) (int, int, int, void *) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glColorPointer( JNIEnv *env, jobject self, jint size, jint type, jint stride, jlong pointer) {
+    if (p_nbridge_glColorPointer == NULL) {
+        p_nbridge_glColorPointer = (void (__stdcall*) (int, int, int, void *)) FindFunction(libGL, "glColorPointer");
+    }
+    (* p_nbridge_glColorPointer)((int) size, (int) type, (int) stride, (void *) pointer);
+}
+
+void (__stdcall* p_nbridge_glScaled) (double, double, double) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glScaled( JNIEnv *env, jobject self, jdouble x, jdouble y, jdouble z) {
+    if (p_nbridge_glScaled == NULL) {
+        p_nbridge_glScaled = (void (__stdcall*) (double, double, double)) FindFunction(libGL, "glScaled");
+    }
+    (* p_nbridge_glScaled)((double) x, (double) y, (double) z);
+}
+
+void (__stdcall* p_nbridge_glDisable) (int) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glDisable( JNIEnv *env, jobject self, jint cap) {
+    if (p_nbridge_glDisable == NULL) {
+        p_nbridge_glDisable = (void (__stdcall*) (int)) FindFunction(libGL, "glDisable");
+    }
+    (* p_nbridge_glDisable)((int) cap);
+}
+
+void (__stdcall* p_nbridge_glRasterPos2i) (int, int) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glRasterPos2i( JNIEnv *env, jobject self, jint x, jint y) {
+    if (p_nbridge_glRasterPos2i == NULL) {
+        p_nbridge_glRasterPos2i = (void (__stdcall*) (int, int)) FindFunction(libGL, "glRasterPos2i");
+    }
+    (* p_nbridge_glRasterPos2i)((int) x, (int) y);
+}
+
+void (__stdcall* p_nbridge_glEnable) (int) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glEnable( JNIEnv *env, jobject self, jint cap) {
+    if (p_nbridge_glEnable == NULL) {
+        p_nbridge_glEnable = (void (__stdcall*) (int)) FindFunction(libGL, "glEnable");
+    }
+    (* p_nbridge_glEnable)((int) cap);
+}
+
+void (__stdcall* p_nbridge_glBitmap) (int, int, float, float, float, float, void *) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glBitmap( JNIEnv *env, jobject self, jint width, jint height, jfloat xorig, jfloat yorig, jfloat xmove, jfloat ymove, jlong bitmap) {
+    if (p_nbridge_glBitmap == NULL) {
+        p_nbridge_glBitmap = (void (__stdcall*) (int, int, float, float, float, float, void *)) FindFunction(libGL, "glBitmap");
+    }
+    (* p_nbridge_glBitmap)((int) width, (int) height, (float) xorig, (float) yorig, (float) xmove, (float) ymove, (void *) bitmap);
+}
+
+void (__stdcall* p_nbridge_glColorTable) (int, int, int, int, int, void *) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glColorTable( JNIEnv *env, jobject self, jint param_0, jint param_1, jint param_2, jint param_3, jint param_4, jlong param_5) {
+    if (p_nbridge_glColorTable == NULL) {
+        p_nbridge_glColorTable = (void (__stdcall*) (int, int, int, int, int, void *)) FindFunction(libGL, "glColorTable");
+    }
+    (* p_nbridge_glColorTable)((int) param_0, (int) param_1, (int) param_2, (int) param_3, (int) param_4, (void *) param_5);
+}
+
+void (__stdcall* p_nbridge_glGenTextures) (int, void *) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glGenTextures( JNIEnv *env, jobject self, jint n, jlong textures) {
+    if (p_nbridge_glGenTextures == NULL) {
+        p_nbridge_glGenTextures = (void (__stdcall*) (int, void *)) FindFunction(libGL, "glGenTextures");
+    }
+    (* p_nbridge_glGenTextures)((int) n, (void *) textures);
+}
+
+void (__stdcall* p_nbridge_glFinish) (void) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glFinish( JNIEnv *env, jobject self) {
+    if (p_nbridge_glFinish == NULL) {
+        p_nbridge_glFinish = (void (__stdcall*) (void)) FindFunction(libGL, "glFinish");
+    }
+    (* p_nbridge_glFinish)();
+}
+
+void (__stdcall* p_nbridge_glDeleteTextures) (int, void *) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glDeleteTextures( JNIEnv *env, jobject self, jint n, jlong textures) {
+    if (p_nbridge_glDeleteTextures == NULL) {
+        p_nbridge_glDeleteTextures = (void (__stdcall*) (int, void *)) FindFunction(libGL, "glDeleteTextures");
+    }
+    (* p_nbridge_glDeleteTextures)((int) n, (void *) textures);
+}
+
+void (__stdcall* p_nbridge_glDisableClientState) (int) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glDisableClientState( JNIEnv *env, jobject self, jint array) {
+    if (p_nbridge_glDisableClientState == NULL) {
+        p_nbridge_glDisableClientState = (void (__stdcall*) (int)) FindFunction(libGL, "glDisableClientState");
+    }
+    (* p_nbridge_glDisableClientState)((int) array);
+}
+
+void (__stdcall* p_nbridge_glBegin) (int) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glBegin( JNIEnv *env, jobject self, jint mode) {
+    if (p_nbridge_glBegin == NULL) {
+        p_nbridge_glBegin = (void (__stdcall*) (int)) FindFunction(libGL, "glBegin");
+    }
+    (* p_nbridge_glBegin)((int) mode);
+}
+
+void (__stdcall* p_nbridge_glVertex2d) (double, double) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glVertex2d( JNIEnv *env, jobject self, jdouble x, jdouble y) {
+    if (p_nbridge_glVertex2d == NULL) {
+        p_nbridge_glVertex2d = (void (__stdcall*) (double, double)) FindFunction(libGL, "glVertex2d");
+    }
+    (* p_nbridge_glVertex2d)((double) x, (double) y);
+}
+
+void (__stdcall* p_nbridge_glLineWidth) (float) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glLineWidth( JNIEnv *env, jobject self, jfloat width) {
+    if (p_nbridge_glLineWidth == NULL) {
+        p_nbridge_glLineWidth = (void (__stdcall*) (float)) FindFunction(libGL, "glLineWidth");
+    }
+    (* p_nbridge_glLineWidth)((float) width);
+}
+
+void (__stdcall* p_nbridge_glLoadMatrixd) (void *) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glLoadMatrixd( JNIEnv *env, jobject self, jlong m) {
+    if (p_nbridge_glLoadMatrixd == NULL) {
+        p_nbridge_glLoadMatrixd = (void (__stdcall*) (void *)) FindFunction(libGL, "glLoadMatrixd");
+    }
+    (* p_nbridge_glLoadMatrixd)((void *) m);
+}
+
+void (__stdcall* p_nbridge_glReadPixels) (int, int, int, int, int, int, void *) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glReadPixels( JNIEnv *env, jobject self, jint x, jint y, jint width, jint height, jint format, jint type, jlong pixels) {
+    if (p_nbridge_glReadPixels == NULL) {
+        p_nbridge_glReadPixels = (void (__stdcall*) (int, int, int, int, int, int, void *)) FindFunction(libGL, "glReadPixels");
+    }
+    (* p_nbridge_glReadPixels)((int) x, (int) y, (int) width, (int) height, (int) format, (int) type, (void *) pixels);
+}
+
+void (__stdcall* p_nbridge_glBindTexture) (int, int) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glBindTexture( JNIEnv *env, jobject self, jint target, jint texture) {
+    if (p_nbridge_glBindTexture == NULL) {
+        p_nbridge_glBindTexture = (void (__stdcall*) (int, int)) FindFunction(libGL, "glBindTexture");
+    }
+    (* p_nbridge_glBindTexture)((int) target, (int) texture);
+}
+
+void (__stdcall* p_nbridge_glPushMatrix) (void) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glPushMatrix( JNIEnv *env, jobject self) {
+    if (p_nbridge_glPushMatrix == NULL) {
+        p_nbridge_glPushMatrix = (void (__stdcall*) (void)) FindFunction(libGL, "glPushMatrix");
+    }
+    (* p_nbridge_glPushMatrix)();
+}
+
+void (__stdcall* p_nbridge_glTexGeni) (int, int, int) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glTexGeni( JNIEnv *env, jobject self, jint coord, jint pname, jint param) {
+    if (p_nbridge_glTexGeni == NULL) {
+        p_nbridge_glTexGeni = (void (__stdcall*) (int, int, int)) FindFunction(libGL, "glTexGeni");
+    }
+    (* p_nbridge_glTexGeni)((int) coord, (int) pname, (int) param);
+}
+
+void (__stdcall* p_nbridge_glStencilFunc) (int, int, int) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glStencilFunc( JNIEnv *env, jobject self, jint func, jint ref, jint mask) {
+    if (p_nbridge_glStencilFunc == NULL) {
+        p_nbridge_glStencilFunc = (void (__stdcall*) (int, int, int)) FindFunction(libGL, "glStencilFunc");
+    }
+    (* p_nbridge_glStencilFunc)((int) func, (int) ref, (int) mask);
+}
+
+void (__stdcall* p_nbridge_glTexImage2D) (int, int, int, int, int, int, int, int, void *) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glTexImage2D( JNIEnv *env, jobject self, jint target, jint level, jint internalformat, jint width, jint height, jint border, jint format, jint type, jlong pixels) {
+    if (p_nbridge_glTexImage2D == NULL) {
+        p_nbridge_glTexImage2D = (void (__stdcall*) (int, int, int, int, int, int, int, int, void *)) FindFunction(libGL, "glTexImage2D");
+    }
+    (* p_nbridge_glTexImage2D)((int) target, (int) level, (int) internalformat, (int) width, (int) height, (int) border, (int) format, (int) type, (void *) pixels);
+}
+
+void (__stdcall* p_nbridge_glPixelMapusv) (int, int, void *) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glPixelMapusv( JNIEnv *env, jobject self, jint map, jint mapsize, jlong values) {
+    if (p_nbridge_glPixelMapusv == NULL) {
+        p_nbridge_glPixelMapusv = (void (__stdcall*) (int, int, void *)) FindFunction(libGL, "glPixelMapusv");
+    }
+    (* p_nbridge_glPixelMapusv)((int) map, (int) mapsize, (void *) values);
+}
+
+void (__stdcall* p_nbridge_glViewport) (int, int, int, int) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glViewport( JNIEnv *env, jobject self, jint x, jint y, jint width, jint height) {
+    if (p_nbridge_glViewport == NULL) {
+        p_nbridge_glViewport = (void (__stdcall*) (int, int, int, int)) FindFunction(libGL, "glViewport");
+    }
+    (* p_nbridge_glViewport)((int) x, (int) y, (int) width, (int) height);
+}
+
+void (__stdcall* p_nbridge_glLoadIdentity) (void) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glLoadIdentity( JNIEnv *env, jobject self) {
+    if (p_nbridge_glLoadIdentity == NULL) {
+        p_nbridge_glLoadIdentity = (void (__stdcall*) (void)) FindFunction(libGL, "glLoadIdentity");
+    }
+    (* p_nbridge_glLoadIdentity)();
+}
+
+void (__stdcall* p_nbridge_glTexSubImage2D) (int, int, int, int, int, int, int, int, void *) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glTexSubImage2D( JNIEnv *env, jobject self, jint target, jint level, jint xoffset, jint yoffset, jint width, jint height, jint format, jint type, jlong pixels) {
+    if (p_nbridge_glTexSubImage2D == NULL) {
+        p_nbridge_glTexSubImage2D = (void (__stdcall*) (int, int, int, int, int, int, int, int, void *)) FindFunction(libGL, "glTexSubImage2D");
+    }
+    (* p_nbridge_glTexSubImage2D)((int) target, (int) level, (int) xoffset, (int) yoffset, (int) width, (int) height, (int) format, (int) type, (void *) pixels);
+}
+
+void (__stdcall* p_nbridge_glDrawBuffer) (int) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glDrawBuffer( JNIEnv *env, jobject self, jint mode) {
+    if (p_nbridge_glDrawBuffer == NULL) {
+        p_nbridge_glDrawBuffer = (void (__stdcall*) (int)) FindFunction(libGL, "glDrawBuffer");
+    }
+    (* p_nbridge_glDrawBuffer)((int) mode);
+}
+
+void (__stdcall* p_nbridge_glReadBuffer) (int) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glReadBuffer( JNIEnv *env, jobject self, jint mode) {
+    if (p_nbridge_glReadBuffer == NULL) {
+        p_nbridge_glReadBuffer = (void (__stdcall*) (int)) FindFunction(libGL, "glReadBuffer");
+    }
+    (* p_nbridge_glReadBuffer)((int) mode);
+}
+
+void (__stdcall* p_nbridge_glStencilOp) (int, int, int) = NULL;
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glStencilOp( JNIEnv *env, jobject self, jint fail, jint zfail, jint zpass) {
+    if (p_nbridge_glStencilOp == NULL) {
+        p_nbridge_glStencilOp = (void (__stdcall*) (int, int, int)) FindFunction(libGL, "glStencilOp");
+    }
+    (* p_nbridge_glStencilOp)((int) fail, (int) zfail, (int) zpass);
+}

Added: harmony/enhanced/classlib/trunk/modules/awt/src/main/native/oglwrapper/shared/org_apache_harmony_awt_gl_opengl_GL.h
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/native/oglwrapper/shared/org_apache_harmony_awt_gl_opengl_GL.h?view=auto&rev=482341
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/awt/src/main/native/oglwrapper/shared/org_apache_harmony_awt_gl_opengl_GL.h (added)
+++ harmony/enhanced/classlib/trunk/modules/awt/src/main/native/oglwrapper/shared/org_apache_harmony_awt_gl_opengl_GL.h Mon Dec  4 12:26:28 2006
@@ -0,0 +1,160 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+ /**
+ * @author Oleg V. Khaschansky
+ * @version $Revision$
+ */
+/* DO NOT EDIT THIS FILE - it is machine generated */
+
+#include <jni.h>
+#include "nativelib_common.h"
+
+#ifndef _Included_org_apache_harmony_awt_gl_opengl_GL
+#define _Included_org_apache_harmony_awt_gl_opengl_GL
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+JNIEXPORT void JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_init (JNIEnv *, jclass);
+
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glVertexPointer(JNIEnv *, jobject, jint, jint, jint, jlong);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glPixelStoref(JNIEnv *, jobject, jint, jfloat);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glRectd(JNIEnv *, jobject, jdouble, jdouble, jdouble, jdouble);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glTranslated(JNIEnv *, jobject, jdouble, jdouble, jdouble);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glLineStipple(JNIEnv *, jobject, jint, jshort);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glBlendFunc(JNIEnv *, jobject, jint, jint);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glColor4ubv(JNIEnv *, jobject, jlong);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glTexImage1D(JNIEnv *, jobject, jint, jint, jint, jint, jint, jint, jint, jlong);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_gluOrtho2D(JNIEnv *, jobject, jdouble, jdouble, jdouble, jdouble);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glDrawArrays(JNIEnv *, jobject, jint, jint, jint);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glPixelStorei(JNIEnv *, jobject, jint, jint);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glTexParameteri(JNIEnv *, jobject, jint, jint, jint);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glRotated(JNIEnv *, jobject, jdouble, jdouble, jdouble, jdouble);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glGetIntegerv(JNIEnv *, jobject, jint, jlong);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glTexGendv(JNIEnv *, jobject, jint, jint, jlong);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glTexCoord2d(JNIEnv *, jobject, jdouble, jdouble);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glPixelTransferf(JNIEnv *, jobject, jint, jfloat);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glCopyTexSubImage2D(JNIEnv *, jobject, jint, jint, jint, jint, jint, jint, jint, jint);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glEnd(JNIEnv *, jobject);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glColorMask(JNIEnv *, jobject, jbyte, jbyte, jbyte, jbyte);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glFlush(JNIEnv *, jobject);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glMatrixMode(JNIEnv *, jobject, jint);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glTexEnvf(JNIEnv *, jobject, jint, jint, jfloat);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glPixelZoom(JNIEnv *, jobject, jfloat, jfloat);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glScissor(JNIEnv *, jobject, jint, jint, jint, jint);
+
+JNIEXPORT jint  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glGetError(JNIEnv *, jobject);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glDrawPixels(JNIEnv *, jobject, jint, jint, jint, jint, jlong);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glCopyPixels(JNIEnv *, jobject, jint, jint, jint, jint, jint);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glBlendFuncSeparate(JNIEnv *, jobject, jint, jint, jint, jint);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glEnableClientState(JNIEnv *, jobject, jint);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glMultMatrixd(JNIEnv *, jobject, jlong);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glClear(JNIEnv *, jobject, jint);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glPopMatrix(JNIEnv *, jobject);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glColorPointer(JNIEnv *, jobject, jint, jint, jint, jlong);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glScaled(JNIEnv *, jobject, jdouble, jdouble, jdouble);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glDisable(JNIEnv *, jobject, jint);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glRasterPos2i(JNIEnv *, jobject, jint, jint);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glEnable(JNIEnv *, jobject, jint);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glBitmap(JNIEnv *, jobject, jint, jint, jfloat, jfloat, jfloat, jfloat, jlong);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glColorTable(JNIEnv *, jobject, jint, jint, jint, jint, jint, jlong);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glGenTextures(JNIEnv *, jobject, jint, jlong);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glFinish(JNIEnv *, jobject);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glDeleteTextures(JNIEnv *, jobject, jint, jlong);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glDisableClientState(JNIEnv *, jobject, jint);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glBegin(JNIEnv *, jobject, jint);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glVertex2d(JNIEnv *, jobject, jdouble, jdouble);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glLineWidth(JNIEnv *, jobject, jfloat);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glLoadMatrixd(JNIEnv *, jobject, jlong);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glReadPixels(JNIEnv *, jobject, jint, jint, jint, jint, jint, jint, jlong);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glBindTexture(JNIEnv *, jobject, jint, jint);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glPushMatrix(JNIEnv *, jobject);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glTexGeni(JNIEnv *, jobject, jint, jint, jint);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glStencilFunc(JNIEnv *, jobject, jint, jint, jint);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glTexImage2D(JNIEnv *, jobject, jint, jint, jint, jint, jint, jint, jint, jint, jlong);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glPixelMapusv(JNIEnv *, jobject, jint, jint, jlong);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glViewport(JNIEnv *, jobject, jint, jint, jint, jint);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glLoadIdentity(JNIEnv *, jobject);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glTexSubImage2D(JNIEnv *, jobject, jint, jint, jint, jint, jint, jint, jint, jint, jlong);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glDrawBuffer(JNIEnv *, jobject, jint);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glReadBuffer(JNIEnv *, jobject, jint);
+
+JNIEXPORT void  JNICALL Java_org_apache_harmony_awt_gl_opengl_GL_glStencilOp(JNIEnv *, jobject, jint, jint, jint);
+#ifdef __cplusplus
+}
+#endif
+#endif

Added: harmony/enhanced/classlib/trunk/modules/awt/src/main/native/oglwrapper/unix/liboglwrapper.exp
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/native/oglwrapper/unix/liboglwrapper.exp?view=auto&rev=482341
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/awt/src/main/native/oglwrapper/unix/liboglwrapper.exp (added)
+++ harmony/enhanced/classlib/trunk/modules/awt/src/main/native/oglwrapper/unix/liboglwrapper.exp Mon Dec  4 12:26:28 2006
@@ -0,0 +1,66 @@
+HYOGLWRAPPER_0.1 {
+    global :
+	Java_org_apache_harmony_awt_gl_opengl_GL_init;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glVertexPointer;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glPixelStoref;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glRectd;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glTranslated;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glLineStipple;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glBlendFunc;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glColor4ubv;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glTexImage1D;
+	Java_org_apache_harmony_awt_gl_opengl_GL_gluOrtho2D;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glDrawArrays;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glPixelStorei;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glTexParameteri;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glRotated;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glGetIntegerv;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glTexGendv;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glTexCoord2d;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glPixelTransferf;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glCopyTexSubImage2D;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glEnd;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glColorMask;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glFlush;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glMatrixMode;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glTexEnvf;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glPixelZoom;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glScissor;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glGetError;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glDrawPixels;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glCopyPixels;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glBlendFuncSeparate;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glEnableClientState;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glMultMatrixd;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glClear;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glPopMatrix;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glColorPointer;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glScaled;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glDisable;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glRasterPos2i;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glEnable;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glBitmap;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glColorTable;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glGenTextures;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glFinish;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glDeleteTextures;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glDisableClientState;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glBegin;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glVertex2d;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glLineWidth;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glLoadMatrixd;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glReadPixels;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glBindTexture;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glPushMatrix;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glTexGeni;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glStencilFunc;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glTexImage2D;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glPixelMapusv;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glViewport;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glLoadIdentity;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glTexSubImage2D;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glDrawBuffer;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glReadBuffer;
+	Java_org_apache_harmony_awt_gl_opengl_GL_glStencilOp;
+    local : *;
+};

Added: harmony/enhanced/classlib/trunk/modules/awt/src/main/native/oglwrapper/unix/makefile
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/native/oglwrapper/unix/makefile?view=auto&rev=482341
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/awt/src/main/native/oglwrapper/unix/makefile (added)
+++ harmony/enhanced/classlib/trunk/modules/awt/src/main/native/oglwrapper/unix/makefile Mon Dec  4 12:26:28 2006
@@ -0,0 +1,31 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+# 
+#     http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+include $(HY_HDK)/build/make/makefile.include
+
+CFLAGS += -fpic -I$(SHARED)common -I$(SHAREDSUB)/include
+
+BUILDFILES = \
+  $(SHAREDSUB)/org_apache_harmony_awt_gl_opengl_GL.o
+
+MDLLIBFILES = \
+	$(DLLPATH)libhysig.so $(LIBPATH)libhyzip.a $(DLLPATH)libhyzlib.so $(LIBPATH)libhycommon.a \
+	$(LIBPATH)libhypool.a $(LIBPATH)libhyfdlibm.a $(DLLPATH)libhythr.so $(LIBPATH)libvmi.so
+
+SYSLIBFILES = -lstdc++
+
+DLLNAME=../liboglwrapper.so
+
+include $(HY_HDK)/build/make/rules.mk
\ No newline at end of file

Added: harmony/enhanced/classlib/trunk/modules/awt/src/main/native/oglwrapper/windows/makefile
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/native/oglwrapper/windows/makefile?view=auto&rev=482341
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/awt/src/main/native/oglwrapper/windows/makefile (added)
+++ harmony/enhanced/classlib/trunk/modules/awt/src/main/native/oglwrapper/windows/makefile Mon Dec  4 12:26:28 2006
@@ -0,0 +1,44 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+# 
+#     http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+!include <$(HY_HDK)\build\make\defines.mak>
+
+LIBBASE=oglwrapper
+DLLNAME=..\$(LIBBASE).dll
+LIBNAME=$(LIBPATH)$(LIBBASE).lib
+HYLDFLAGS = $(HYLDFLAGS) -def:$(LIBBASE).def
+
+# TOFIX: fix warns and use default flags.  That is:
+# HYCFLAGS = $(HYCFLAGS) /I$(SHAREDSUB) /I$(SHAREDSUB)include
+
+HYCFLAGS = \
+  -Ogityb1 -W3 -GF -Gs -MD -Zi -Zm400 \
+  -D_DLL -D_MT -DWIN32 -D_WIN32_WINNT=0x0400 -D_WINSOCKAPI_ -DWINVER=0x0400 \
+  $(VMDEBUG) /I$(HY_HDK)\include /I$(HY_HDK)\jdk\include /I. \
+  /I$(SHAREDSUB) /I$(SHAREDSUB)include
+
+BUILDFILES = $(SHAREDSUB)org_apache_harmony_awt_gl_opengl_GL.obj
+
+VIRTFILES = $(LIBBASE).res
+SYSLIBFILES = ws2_32.lib Iphlpapi.lib
+
+MDLLIBFILES = \
+  $(LIBPATH)hysig.lib $(LIBPATH)hycommon.lib $(LIBPATH)hypool.lib \
+  $(LIBPATH)hythr.lib $(LIBPATH)vmi.lib
+
+DLLBASE=0x13300000
+COMMENT=/comment:"OpenGL Wrapper native code. (c) Copyright 2005 - 2006 The Apache Software Foundation or its licensors, as applicable."
+
+!include <$(HY_HDK)\build\make\rules.mak>

Added: harmony/enhanced/classlib/trunk/modules/awt/src/main/native/oglwrapper/windows/oglwrapper.RES
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/native/oglwrapper/windows/oglwrapper.RES?view=auto&rev=482341
==============================================================================
Binary file - no diff available.

Propchange: harmony/enhanced/classlib/trunk/modules/awt/src/main/native/oglwrapper/windows/oglwrapper.RES
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: harmony/enhanced/classlib/trunk/modules/awt/src/main/native/oglwrapper/windows/oglwrapper.def
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/native/oglwrapper/windows/oglwrapper.def?view=auto&rev=482341
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/awt/src/main/native/oglwrapper/windows/oglwrapper.def (added)
+++ harmony/enhanced/classlib/trunk/modules/awt/src/main/native/oglwrapper/windows/oglwrapper.def Mon Dec  4 12:26:28 2006
@@ -0,0 +1,7 @@
+LIBRARY	OGLWRAPPER
+
+SECTIONS
+	.data	READ WRITE
+	.text	EXECUTE READ
+
+EXPORTS

Added: harmony/enhanced/classlib/trunk/modules/awt/src/main/native/oglwrapper/windows/oglwrapper.rc
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/native/oglwrapper/windows/oglwrapper.rc?view=auto&rev=482341
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/awt/src/main/native/oglwrapper/windows/oglwrapper.rc (added)
+++ harmony/enhanced/classlib/trunk/modules/awt/src/main/native/oglwrapper/windows/oglwrapper.rc Mon Dec  4 12:26:28 2006
@@ -0,0 +1,48 @@
+;
+; Licensed to the Apache Software Foundation (ASF) under one or more
+; contributor license agreements.  See the NOTICE file distributed with
+; this work for additional information regarding copyright ownership.
+; The ASF licenses this file to You under the Apache License, Version 2.0
+; (the "License"); you may not use this file except in compliance with
+; the License.  You may obtain a copy of the License at
+; 
+;     http://www.apache.org/licenses/LICENSE-2.0
+; 
+; Unless required by applicable law or agreed to in writing, software
+; distributed under the License is distributed on an "AS IS" BASIS,
+; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+; See the License for the specific language governing permissions and
+; limitations under the License.
+;
+
+#include <windows.h>
+#include <winver.h>
+
+VS_VERSION_INFO VERSIONINFO
+ FILEVERSION 0,1,0,0
+ PRODUCTVERSION 0,1,0,0
+ FILEFLAGSMASK 0x3fL
+ FILEFLAGS 0x0L
+ FILEOS VOS_NT_WINDOWS32
+ FILETYPE VFT_DLL
+ FILESUBTYPE 0x0L
+BEGIN
+	BLOCK "StringFileInfo"
+	BEGIN
+		BLOCK "040904b0"
+		BEGIN
+			VALUE "CompanyName", "The Apache Software Foundation.\0"
+			VALUE "FileDescription", "OpenGL wrapper native code\0"
+			VALUE "FileVersion", "0.1\0"
+			VALUE "InternalName", "oglwrapper\0"
+			VALUE "LegalCopyright", "(c) Copyright 2005 - 2006 The Apache Software Foundation or its licensors, as applicable.\0"
+			VALUE "OriginalFilename", "oglwrapper.dll\0"
+			VALUE "ProductName", "Apache Harmony\0"
+			VALUE "ProductVersion", "0.1\0"
+		END
+	END
+	BLOCK "VarFileInfo"
+	BEGIN
+		VALUE "Translation", 0x0409, 1200
+	END
+END

Modified: harmony/enhanced/classlib/trunk/modules/awt/src/main/native/win32wrapper/windows/makefile
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/native/win32wrapper/windows/makefile?view=diff&rev=482341&r1=482340&r2=482341
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/awt/src/main/native/win32wrapper/windows/makefile (original)
+++ harmony/enhanced/classlib/trunk/modules/awt/src/main/native/win32wrapper/windows/makefile Mon Dec  4 12:26:28 2006
@@ -30,8 +30,10 @@
 BUILDFILES = \
   Callback.obj \
   org_apache_harmony_awt_nativebridge_windows_Win32.obj \
+  org_apache_harmony_awt_nativebridge_windows_WGL.obj \
   WinDataTransfer.obj \
-  WinManagement.obj
+  WinManagement.obj \
+  nativelib_common.obj
 
 VIRTFILES = $(LIBBASE).res
 SYSLIBFILES = ws2_32.lib Iphlpapi.lib

Added: harmony/enhanced/classlib/trunk/modules/awt/src/main/native/win32wrapper/windows/nativelib_common.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/native/win32wrapper/windows/nativelib_common.cpp?view=auto&rev=482341
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/awt/src/main/native/win32wrapper/windows/nativelib_common.cpp (added)
+++ harmony/enhanced/classlib/trunk/modules/awt/src/main/native/win32wrapper/windows/nativelib_common.cpp Mon Dec  4 12:26:28 2006
@@ -0,0 +1,17 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+void *findFunctionRes = 0;
\ No newline at end of file

Modified: harmony/enhanced/classlib/trunk/modules/awt/src/main/native/win32wrapper/windows/nativelib_common.h
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/native/win32wrapper/windows/nativelib_common.h?view=diff&rev=482341&r1=482340&r2=482341
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/awt/src/main/native/win32wrapper/windows/nativelib_common.h (original)
+++ harmony/enhanced/classlib/trunk/modules/awt/src/main/native/win32wrapper/windows/nativelib_common.h Mon Dec  4 12:26:28 2006
@@ -33,6 +33,8 @@
 
 #define FindFunction(lib, name) dlsym(lib, name)
 
+#define INIT_GL_GET_PROC_ADDRESS
+
 #ifndef __INTEL_COMPILER
     typedef long long __int64;
 #endif
@@ -60,7 +62,13 @@
 
 #define LOAD_LIB(res, name) res = ::LoadLibraryA(name)
 
-#define FindFunction(lib, name) (void *)::GetProcAddress(lib, name)
+extern void * (__stdcall * p_nbridge_wglGetProcAddress) (void *);
+
+#undef FindFunction
+extern void *findFunctionRes;
+#define FindFunction(lib, name) ((findFunctionRes = (void *)::GetProcAddress(lib, name)) ? findFunctionRes : (*p_nbridge_wglGetProcAddress)(name))
+
+#define INIT_GL_GET_PROC_ADDRESS p_nbridge_wglGetProcAddress = (void * (__stdcall *) (void *)) ::GetProcAddress(libOpenGL32, "wglGetProcAddress");
 
 // END common windows section--------------------------
 #ifdef           _WIN32

Added: harmony/enhanced/classlib/trunk/modules/awt/src/main/native/win32wrapper/windows/org_apache_harmony_awt_nativebridge_windows_WGL.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/native/win32wrapper/windows/org_apache_harmony_awt_nativebridge_windows_WGL.cpp?view=auto&rev=482341
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/awt/src/main/native/win32wrapper/windows/org_apache_harmony_awt_nativebridge_windows_WGL.cpp (added)
+++ harmony/enhanced/classlib/trunk/modules/awt/src/main/native/win32wrapper/windows/org_apache_harmony_awt_nativebridge_windows_WGL.cpp Mon Dec  4 12:26:28 2006
@@ -0,0 +1,141 @@
+/*
+ *  Copyright 2005 - 2006 The Apache Software Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+/* DO NOT EDIT THIS FILE - it is based on WGL headers and has been generated by nativebridge tool.*/
+
+#include "org_apache_harmony_awt_nativebridge_windows_WGL.h"
+static libHandler libOpenGL32;
+
+JNIEXPORT void JNICALL Java_org_apache_harmony_awt_nativebridge_windows_WGL_init (JNIEnv * env, jclass cls) {
+    LOAD_LIB(libOpenGL32, "OpenGL32");
+    INIT_GL_GET_PROC_ADDRESS
+}
+
+void * (__stdcall * p_nbridge_wglGetProcAddress) (void *) = NULL;
+
+JNIEXPORT jlong  JNICALL Java_org_apache_harmony_awt_nativebridge_windows_WGL_wglGetProcAddress( JNIEnv *env, jobject self, jlong param_0) {
+    if (p_nbridge_wglGetProcAddress == NULL) {
+        p_nbridge_wglGetProcAddress = (void * (__stdcall *) (void *)) FindFunction(libOpenGL32, "wglGetProcAddress");
+    }
+    return (jlong) (* p_nbridge_wglGetProcAddress)((void *) param_0);
+}
+
+void * (__stdcall * p_nbridge_wglCreateContext) (void *) = NULL;
+
+JNIEXPORT jlong  JNICALL Java_org_apache_harmony_awt_nativebridge_windows_WGL_wglCreateContext( JNIEnv *env, jobject self, jlong param_0) {
+    if (p_nbridge_wglCreateContext == NULL) {
+        p_nbridge_wglCreateContext = (void * (__stdcall *) (void *)) FindFunction(libOpenGL32, "wglCreateContext");
+    }
+    return (jlong) (* p_nbridge_wglCreateContext)((void *) param_0);
+}
+
+int  (__stdcall * p_nbridge_wglMakeCurrent) (void *, void *) = NULL;
+
+JNIEXPORT jint  JNICALL Java_org_apache_harmony_awt_nativebridge_windows_WGL_wglMakeCurrent( JNIEnv *env, jobject self, jlong param_0, jlong param_1) {
+    if (p_nbridge_wglMakeCurrent == NULL) {
+        p_nbridge_wglMakeCurrent = (int  (__stdcall *) (void *, void *)) FindFunction(libOpenGL32, "wglMakeCurrent");
+    }
+    return (jint) (* p_nbridge_wglMakeCurrent)((void *) param_0, (void *) param_1);
+}
+
+static int  (__stdcall * p_nbridge_wglDestroyPbufferARB) (void *) = NULL;
+
+JNIEXPORT jint  JNICALL Java_org_apache_harmony_awt_nativebridge_windows_WGL_wglDestroyPbufferARB( JNIEnv *env, jobject self, jlong param_0) {
+    if (p_nbridge_wglDestroyPbufferARB == NULL) {
+        p_nbridge_wglDestroyPbufferARB = (int  (__stdcall *) (void *)) FindFunction(libOpenGL32, "wglDestroyPbufferARB");
+    }
+    return (jint) (* p_nbridge_wglDestroyPbufferARB)((void *) param_0);
+}
+
+int  (__stdcall * p_nbridge_SwapBuffers) (void *) = NULL;
+
+JNIEXPORT jint  JNICALL Java_org_apache_harmony_awt_nativebridge_windows_WGL_SwapBuffers( JNIEnv *env, jobject self, jlong param_0) {
+    if (p_nbridge_SwapBuffers == NULL) {
+        p_nbridge_SwapBuffers = (int  (__stdcall *) (void *)) FindFunction(libOpenGL32, "SwapBuffers");
+    }
+    return (jint) (* p_nbridge_SwapBuffers)((void *) param_0);
+}
+
+static int (__stdcall * p_nbridge_wglReleasePbufferDCARB) (void *, void *) = NULL;
+
+JNIEXPORT jint  JNICALL Java_org_apache_harmony_awt_nativebridge_windows_WGL_wglReleasePbufferDCARB( JNIEnv *env, jobject self, jlong param_0, jlong param_1) {
+    if (p_nbridge_wglReleasePbufferDCARB == NULL) {
+        p_nbridge_wglReleasePbufferDCARB = (int (__stdcall *) (void *, void *)) FindFunction(libOpenGL32, "wglReleasePbufferDCARB");
+    }
+    return (jint) (* p_nbridge_wglReleasePbufferDCARB)((void *) param_0, (void *) param_1);
+}
+
+static void * (__stdcall * p_nbridge_wglCreatePbufferARB) (void *, int, int, int, void *) = NULL;
+
+JNIEXPORT jlong  JNICALL Java_org_apache_harmony_awt_nativebridge_windows_WGL_wglCreatePbufferARB( JNIEnv *env, jobject self, jlong param_0, jint param_1, jint param_2, jint param_3, jlong param_4) {
+    if (p_nbridge_wglCreatePbufferARB == NULL) {
+        p_nbridge_wglCreatePbufferARB = (void * (__stdcall *) (void *, int, int, int, void *)) FindFunction(libOpenGL32, "wglCreatePbufferARB");
+    }
+    return (jlong) (* p_nbridge_wglCreatePbufferARB)((void *) param_0, (int) param_1, (int) param_2, (int) param_3, (void *) param_4);
+}
+
+static int  (__stdcall * p_nbridge_wglQueryPbufferARB) (void *, int, void *) = NULL;
+
+JNIEXPORT jint  JNICALL Java_org_apache_harmony_awt_nativebridge_windows_WGL_wglQueryPbufferARB( JNIEnv *env, jobject self, jlong param_0, jint param_1, jlong param_2) {
+    if (p_nbridge_wglQueryPbufferARB == NULL) {
+        p_nbridge_wglQueryPbufferARB = (int  (__stdcall *) (void *, int, void *)) FindFunction(libOpenGL32, "wglQueryPbufferARB");
+    }
+    return (jint) (* p_nbridge_wglQueryPbufferARB)((void *) param_0, (int) param_1, (void *) param_2);
+}
+
+int  (__stdcall * p_nbridge_wglDeleteContext) (void *) = NULL;
+
+JNIEXPORT jint  JNICALL Java_org_apache_harmony_awt_nativebridge_windows_WGL_wglDeleteContext( JNIEnv *env, jobject self, jlong param_0) {
+    if (p_nbridge_wglDeleteContext == NULL) {
+        p_nbridge_wglDeleteContext = (int  (__stdcall *) (void *)) FindFunction(libOpenGL32, "wglDeleteContext");
+    }
+    return (jint) (* p_nbridge_wglDeleteContext)((void *) param_0);
+}
+
+static void * (__stdcall * p_nbridge_wglGetExtensionsStringARB) (void *) = NULL;
+
+JNIEXPORT jlong  JNICALL Java_org_apache_harmony_awt_nativebridge_windows_WGL_wglGetExtensionsStringARB( JNIEnv *env, jobject self, jlong param_0) {
+    if (p_nbridge_wglGetExtensionsStringARB == NULL) {
+        p_nbridge_wglGetExtensionsStringARB = (void * (__stdcall *) (void *)) FindFunction(libOpenGL32, "wglGetExtensionsStringARB");
+    }
+    return (jlong) (* p_nbridge_wglGetExtensionsStringARB)((void *) param_0);
+}
+
+static int  (__stdcall * p_nbridge_wglChoosePixelFormatARB) (void *, void *, void *, int, void *, void *) = NULL;
+
+JNIEXPORT jint  JNICALL Java_org_apache_harmony_awt_nativebridge_windows_WGL_wglChoosePixelFormatARB( JNIEnv *env, jobject self, jlong param_0, jlong param_1, jlong param_2, jint param_3, jlong param_4, jlong param_5) {
+    if (p_nbridge_wglChoosePixelFormatARB == NULL) {
+        p_nbridge_wglChoosePixelFormatARB = (int  (__stdcall *) (void *, void *, void *, int, void *, void *)) FindFunction(libOpenGL32, "wglChoosePixelFormatARB");
+    }
+    return (jint) (* p_nbridge_wglChoosePixelFormatARB)((void *) param_0, (void *) param_1, (void *) param_2, (int) param_3, (void *) param_4, (void *) param_5);
+}
+
+int  (__stdcall * p_nbridge_wglShareLists) (void *, void *) = NULL;
+
+JNIEXPORT jint  JNICALL Java_org_apache_harmony_awt_nativebridge_windows_WGL_wglShareLists( JNIEnv *env, jobject self, jlong param_0, jlong param_1) {
+    if (p_nbridge_wglShareLists == NULL) {
+        p_nbridge_wglShareLists = (int  (__stdcall *) (void *, void *)) FindFunction(libOpenGL32, "wglShareLists");
+    }
+    return (jint) (* p_nbridge_wglShareLists)((void *) param_0, (void *) param_1);
+}
+
+static void * (__stdcall * p_nbridge_wglGetPbufferDCARB) (void *) = NULL;
+
+JNIEXPORT jlong  JNICALL Java_org_apache_harmony_awt_nativebridge_windows_WGL_wglGetPbufferDCARB( JNIEnv *env, jobject self, jlong param_0) {
+    if (p_nbridge_wglGetPbufferDCARB == NULL) {
+        p_nbridge_wglGetPbufferDCARB = (void * (__stdcall *) (void *)) FindFunction(libOpenGL32, "wglGetPbufferDCARB");
+    }
+    return (jlong) (* p_nbridge_wglGetPbufferDCARB)((void *) param_0);
+}

Added: harmony/enhanced/classlib/trunk/modules/awt/src/main/native/win32wrapper/windows/org_apache_harmony_awt_nativebridge_windows_WGL.h
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/native/win32wrapper/windows/org_apache_harmony_awt_nativebridge_windows_WGL.h?view=auto&rev=482341
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/awt/src/main/native/win32wrapper/windows/org_apache_harmony_awt_nativebridge_windows_WGL.h (added)
+++ harmony/enhanced/classlib/trunk/modules/awt/src/main/native/win32wrapper/windows/org_apache_harmony_awt_nativebridge_windows_WGL.h Mon Dec  4 12:26:28 2006
@@ -0,0 +1,59 @@
+/*
+ *  Copyright 2005 - 2006 The Apache Software Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+/* DO NOT EDIT THIS FILE - it is based on WGL headers and has been generated by nativebridge tool.*/
+
+#include <jni.h>
+#include "nativelib_common.h"
+
+#ifndef _Included_org_apache_harmony_awt_nativebridge_windows_WGL
+#define _Included_org_apache_harmony_awt_nativebridge_windows_WGL
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+JNIEXPORT void JNICALL Java_org_apache_harmony_awt_nativebridge_windows_WGL_init (JNIEnv *, jclass);
+
+
+JNIEXPORT jlong  JNICALL Java_org_apache_harmony_awt_nativebridge_windows_WGL_wglGetProcAddress(JNIEnv *, jobject, jlong);
+
+JNIEXPORT jlong  JNICALL Java_org_apache_harmony_awt_nativebridge_windows_WGL_wglCreateContext(JNIEnv *, jobject, jlong);
+
+JNIEXPORT jint  JNICALL Java_org_apache_harmony_awt_nativebridge_windows_WGL_wglMakeCurrent(JNIEnv *, jobject, jlong, jlong);
+
+JNIEXPORT jint  JNICALL Java_org_apache_harmony_awt_nativebridge_windows_WGL_wglDestroyPbufferARB(JNIEnv *, jobject, jlong);
+
+JNIEXPORT jint  JNICALL Java_org_apache_harmony_awt_nativebridge_windows_WGL_SwapBuffers(JNIEnv *, jobject, jlong);
+
+JNIEXPORT jint  JNICALL Java_org_apache_harmony_awt_nativebridge_windows_WGL_wglReleasePbufferDCARB(JNIEnv *, jobject, jlong, jlong);
+
+JNIEXPORT jlong  JNICALL Java_org_apache_harmony_awt_nativebridge_windows_WGL_wglCreatePbufferARB(JNIEnv *, jobject, jlong, jint, jint, jint, jlong);
+
+JNIEXPORT jint  JNICALL Java_org_apache_harmony_awt_nativebridge_windows_WGL_wglQueryPbufferARB(JNIEnv *, jobject, jlong, jint, jlong);
+
+JNIEXPORT jint  JNICALL Java_org_apache_harmony_awt_nativebridge_windows_WGL_wglDeleteContext(JNIEnv *, jobject, jlong);
+
+JNIEXPORT jlong  JNICALL Java_org_apache_harmony_awt_nativebridge_windows_WGL_wglGetExtensionsStringARB(JNIEnv *, jobject, jlong);
+
+JNIEXPORT jint  JNICALL Java_org_apache_harmony_awt_nativebridge_windows_WGL_wglChoosePixelFormatARB(JNIEnv *, jobject, jlong, jlong, jlong, jint, jlong, jlong);
+
+JNIEXPORT jint  JNICALL Java_org_apache_harmony_awt_nativebridge_windows_WGL_wglShareLists(JNIEnv *, jobject, jlong, jlong);
+
+JNIEXPORT jlong  JNICALL Java_org_apache_harmony_awt_nativebridge_windows_WGL_wglGetPbufferDCARB(JNIEnv *, jobject, jlong);
+#ifdef __cplusplus
+}
+#endif
+#endif

Modified: harmony/enhanced/classlib/trunk/modules/swing/build.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/build.xml?view=diff&rev=482341&r1=482340&r2=482341
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/build.xml (original)
+++ harmony/enhanced/classlib/trunk/modules/swing/build.xml Mon Dec  4 12:26:28 2006
@@ -185,6 +185,7 @@
             <test name="${test.case}" todir="${hy.tests.reports}"
                   if="test.case" />
             <jvmarg value="-Xbootclasspath/a:${hy.swing.bin.test}${path.separator}../../${junit.jar}${path.separator}${hy.hdk}/build/test/support.jar"/>
+<!--            <jvmarg value="-Djava2d.opengl=true"/> -->
 
             <batchtest todir="${hy.tests.reports}" haltonfailure="no"
                 unless="test.case">



Mime
View raw message