From 880653d31a8f1ff8384fdbc75b84934bceecfdb8 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 18 Nov 2000 06:43:49 +0000 Subject: Initial revision --- CNativeCode/misc/context.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 CNativeCode/misc/context.h (limited to 'CNativeCode/misc/context.h') 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); -- cgit v1.2.3