diff options
Diffstat (limited to 'CNativeCode/misc/context.h')
-rw-r--r-- | CNativeCode/misc/context.h | 18 |
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); |