aboutsummaryrefslogtreecommitdiffstats
path: root/CNativeCode/misc/context.h
blob: cee1d75db85bf74e8b9b1a730323ea5d35ca0a08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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);