diff options
author | Sven Gothel <[email protected]> | 2000-11-18 06:43:49 +0000 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2000-11-18 06:43:49 +0000 |
commit | 880653d31a8f1ff8384fdbc75b84934bceecfdb8 (patch) | |
tree | bdafb71416f176d2a4b73bf716c9dc3f13685a8b /CNativeCode/GLUCallbackJNI.h |
Initial revision
Diffstat (limited to 'CNativeCode/GLUCallbackJNI.h')
-rw-r--r-- | CNativeCode/GLUCallbackJNI.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/CNativeCode/GLUCallbackJNI.h b/CNativeCode/GLUCallbackJNI.h new file mode 100644 index 0000000..58649fe --- /dev/null +++ b/CNativeCode/GLUCallbackJNI.h @@ -0,0 +1,62 @@ + +#ifndef GLUCALLBACKJNI + #define GLUCALLBACKJNI + + #include <stdio.h> + #include <stdlib.h> + #include <stdarg.h> + + #ifdef _WIN32_ + #include "winstuff.h" + #endif + + #include <jni.h> + + #include<GL/gl.h> + #include <GL/glu.h> + + #ifndef LIBAPIENTRY + #define LIBAPIENTRY + #endif + #ifndef LIBAPI + #define LIBAPI + #endif + + typedef int (*CBF_ANY_FUNCTION) (); + + typedef void (*CBF_GLU_TESS_BEGIN) (GLenum type); + typedef void (*CBF_GLU_TESS_BEGIN_DATA) (GLenum type, void *udata); + typedef void (*CBF_GLU_TESS_EDGE_FLAG) (GLboolean flag); + typedef void (*CBF_GLU_TESS_EDGE_FLAG_DATA) (GLboolean flag, void *udata); + typedef void (*CBF_GLU_TESS_VERTEX) (void * vdata); + typedef void (*CBF_GLU_TESS_VERTEX_DATA) (void * vdata, void * udata); + typedef void (*CBF_GLU_TESS_END) (void); + typedef void (*CBF_GLU_TESS_END_DATA) (void * udata); + typedef void (*CBF_GLU_TESS_ERROR) (GLenum errno); + typedef void (*CBF_GLU_TESS_ERROR_DATA) (GLenum errno, void * udata); + typedef void (*CBF_GLU_TESS_COMBINE) (GLdouble coords[3], void *vdata[4], + GLfloat weight[4], void **outdata); + typedef void (*CBF_GLU_TESS_COMBINE_DATA) (GLdouble coords[3], void *vdata[4], + GLfloat weight[4], void **outdata, + void *udata); + typedef void (*CBF_GLU_ERROR) (GLenum errno); + + LIBAPI void LIBAPIENTRY cbf_GLU_TESS_BEGIN (GLenum type); + LIBAPI void LIBAPIENTRY cbf_GLU_TESS_BEGIN_DATA (GLenum type, void *udata); + LIBAPI void LIBAPIENTRY cbf_GLU_TESS_EDGE_FLAG (GLboolean flag); + LIBAPI void LIBAPIENTRY cbf_GLU_TESS_EDGE_FLAG_DATA (GLboolean flag, void *udata); + LIBAPI void LIBAPIENTRY cbf_GLU_TESS_VERTEX (void * vdata); + LIBAPI void LIBAPIENTRY cbf_GLU_TESS_VERTEX_DATA (void * vdata, void * udata); + LIBAPI void LIBAPIENTRY cbf_GLU_TESS_END (void); + LIBAPI void LIBAPIENTRY cbf_GLU_TESS_END_DATA (void * udata); + LIBAPI void LIBAPIENTRY cbf_GLU_TESS_ERROR (GLenum errno); + LIBAPI void LIBAPIENTRY cbf_GLU_TESS_ERROR_DATA (GLenum errno, void * udata); + LIBAPI void LIBAPIENTRY cbf_GLU_TESS_COMBINE (GLdouble coords[3], void *vdata[4], + GLfloat weight[4], void **outdata); + LIBAPI void LIBAPIENTRY cbf_GLU_TESS_COMBINE_DATA (GLdouble coords[3], void *vdata[4], + GLfloat weight[4], void **outdata, + void *udata); + + LIBAPI void LIBAPIENTRY cbf_GLU_ERROR (GLenum errno); + +#endif |