blob: 81cfda7a229084f3a9f9a20af0d66c4b3a77e65b (
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
|
/*
* Leo Chan -- 1995
*
* This C file takes care of all the native implementation for the
* OpenGL utility commands
* ---------------
*
* Sven Goethel
*
* September 1997
*/
/*
* need to include the JAVA internal header files for macros and function
* prototypes required to maipulated JAVA data structures and functions
*
* StubPreamble.h includes the structure and macro definitions neede to
* convert JAVA data structures into C data structures.
*
*/
#ifdef _WIN32_
#include "winstuff.h"
#endif
#include <stdio.h>
#include <stdlib.h>
#include <jni.h>
/*
* the next thing to include are special headers that were created by
* JAVAH. They include the C structure definitions for the JAVA classes
*/
#include "gl4java_GLUFuncJauJNI.h"
/*--------------------------------------------------------------------------
* here on in is just regular apple pie C
*/
/*
* next put any specific header files that are necessary to implement
* this native code
*/
#include<GL/gl.h>
#include <GL/glu.h>
#include "GLCallbackHelperJNI.h"
#include "GLUCallbackJNI.h"
#include "jnitools.h"
/**
* herein lies the native JAVA methods for the OpenGL functions.
*/
|