aboutsummaryrefslogtreecommitdiffstats
path: root/CNativeCode/GLUCallbackJNI.h
blob: 58649fe95e86d7518f124bf1ada95cb16f8136ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
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