summaryrefslogtreecommitdiffstats
path: root/src/jogl/native/GLXGetProcAddressARB.c
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-11-09 00:14:01 +0100
committerSven Gothel <[email protected]>2011-11-09 00:14:01 +0100
commit1055ce051fd7bd3c88724888cf8f46c75535a249 (patch)
treec93785b2d2eff1363b8eba17398f57534c55c9a5 /src/jogl/native/GLXGetProcAddressARB.c
parent835b88a4ec0a01edf23d2af2cc1d22a7550bdf9b (diff)
OS X Layered View: Part2 Java/Native MacOSXCGLContext / MacOSXPbufferCGLContext
Undo 368cbf4462d7f3635c1ef4497424c360b5ccc203: - "use SurfaceUpdateListener() to notify layer", simply use MacOSXCGLContext's swap impl. MacOSXCGLContext: - NSOpenGLImpl.create(): - issues createNSOpenGLLayer() using tex-size (maybe POT) as args - attaches the NSOpenGLLayer to the JAWT layered surface host - NSOpenGLImpl.setSwapInterval() propagates interval to our NSOpenGLLayer impl. - NSOpenGLImpl.swapBuffer() (layer case): - waits for v-sync if enabled (v-sync), or until native 'draw' is finished (tearing) using our pthread/ NSOpenGLLayer synchronization. The latter uses CADisplayLink or CVDisplayLinkRef for v-sync synchronization. - flushes our local ctx - triggers our NSOpenGLLayer to 'draw' - MacOSXPbufferCGLContext create() sets the texture size independently of pbuffer size (POT/NPOT)
Diffstat (limited to 'src/jogl/native/GLXGetProcAddressARB.c')
0 files changed, 0 insertions, 0 deletions