From: Kevin W. <kw...@co...> - 2011-09-04 18:22:39
|
Hi Alexander, On 9/4/11 2:07 PM, Alexander Agathos wrote: > Hi Kevin, > > I am working to make Togl (you know the OpenGL interface for OpenGL) > work under Tk-Cocoa, the days of Carbon are over. Correct. > I am linking the Proposed Patch by Chimera : > > http://plato.cgl.ucsf.edu/trac/chimera/browser/trunk/foreign/Togl/togl-cocoa.patch > > The problem is with TkMacOSXDrawbableWindowRef, this function does not > exist and as the patch info tell, you need a patch to Tk-Cocoa to expose > the window. So TkMacOSXDrawbableWindowRef is a custom function that one > should make. > What I did is to download the tarball of TCL/TK 8.5.9 backported for > Cocoa and write this function in tkMacOSXXStubs.c > > > WindowRef > > TkMacOSXDrawableWindowRef(Drawable d){ > > WindowRef windowRef = TkMacOSXDrawableWindow(d); > > return windowRef; > > } > > > And compiled the tk framework. > Did I do the right thing? I'm not sure if you're doing the right thing or not. That patch appears to be entirely focused on Togl's own API and does not require any special patching of Tk itself. You might want to ask the Togl developers how they integrate it, as I believe their app Chimera uses the same code base for Tk as you are trying to do. --Kevin -- Kevin Walzer Code by Kevin http://www.codebykevin.com |