aboutsummaryrefslogtreecommitdiffstats
path: root/CNativeCode/misc/context.h
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2000-11-18 06:43:49 +0000
committerSven Gothel <[email protected]>2000-11-18 06:43:49 +0000
commit880653d31a8f1ff8384fdbc75b84934bceecfdb8 (patch)
treebdafb71416f176d2a4b73bf716c9dc3f13685a8b /CNativeCode/misc/context.h
Initial revision
Diffstat (limited to 'CNativeCode/misc/context.h')
-rw-r--r--CNativeCode/misc/context.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/CNativeCode/misc/context.h b/CNativeCode/misc/context.h
new file mode 100644
index 0000000..cee1d75
--- /dev/null
+++ b/CNativeCode/misc/context.h
@@ -0,0 +1,18 @@
+
+
+typedef struct GL4JCtxData {
+ int handle; // the java side - handle
+ void * glContext; // the orig. GL context
+ void * vertex; //
+ void * normal;
+ void * color;
+ void * index;
+ void * texcoords[];
+ void * edgeflag;
+};
+
+#define MAX_GL4J_CONTEXT = 100;
+extern GL4JCtxData gl4jCtxData[MAX_GL4J_CONTEXT];
+
+GL4JCtxData findGL4JCtxData(void * glcontext);
+void releaseGL4JCtxData(GL4JCtxData * data);