summaryrefslogtreecommitdiffstats
path: root/make/cgl-macosx.cfg
blob: 183c777bed3c65d59351e17f6b2aaad93ce93730 (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
56
# This .cfg file is used to generate the interface to the CGL routines
# used internally by the MacOSXGLContext implementation.
Package net.java.games.jogl.impl.macosx
JavaOutputDir ..\build\gensrc\classes
NativeOutputDir ..\build\gensrc\native\jogl
JavaClass CGL
Style allstatic
Include gl-common-macosx.cfg

Opaque long void *

# FIXME: rather than put in a header file somewhere in the source tree,
# this was the easiest way of sharing the prototypes between these files
CustomCCode typedef int Bool;

CustomCCode #include </usr/include/machine/types.h>

CustomCCode extern void* createContext(void* shareContext, void* nsView,
CustomCCode                            int doubleBuffer,
CustomCCode                            int stereo,
CustomCCode                            int redBits,
CustomCCode                            int greenBits,
CustomCCode                            int blueBits,
CustomCCode                            int alphaBits,
CustomCCode                            int depthBits,
CustomCCode                            int stencilBits,
CustomCCode                            int accumRedBits,
CustomCCode                            int accumGreenBits,
CustomCCode                            int accumBlueBits,
CustomCCode                            int accumAlphaBits,
CustomCCode                            int sampleBuffers,
CustomCCode                            int numSamples,
CustomCCode                            int pbuffer,
CustomCCode                            int floatingPoint,
CustomCCode                            int* viewNotReady);
CustomCCode extern Bool makeCurrentContext(void* nsContext, void* nsView);
CustomCCode extern Bool clearCurrentContext(void* nsContext, void* nsView);
CustomCCode extern Bool deleteContext(void* nsContext, void* nsView);
CustomCCode extern Bool flushBuffer(void* nsContext, void* nsView);
CustomCCode extern void updateContext(void* nsContext, void* nsView);

CustomCCode extern void* updateContextRegister(void* nsContext, void* nsView);
CustomCCode extern void  updateContextUnregister(void* nsContext, void* nsView, void* updater);

CustomCCode extern void* createPBuffer(int renderTarget, int internalFormat, int width, int height);
CustomCCode extern Bool destroyPBuffer(void* nsContext, void* pBuffer);
CustomCCode extern void setContextPBuffer(void* nsContext, void* pBuffer);
CustomCCode extern void setContextTextureImageToPBuffer(void* nsContext, void* pBuffer, int colorBuffer);

CustomCCode extern void* getProcAddress(const char *procName);

CustomCCode extern void setSwapInterval(void* nsContext, int interval);

# Implement the first argument to getProcAddress as String instead
# of byte[]
ArgumentIsString getProcAddress 0