On Sun, Jun 15, 2008 at 5:24 PM, Daniel Oberhoff
<[EMAIL PROTECTED]> wrote:
>
> Am 15.06.2008 um 00:16 schrieb Tommi Komulainen:
>
>> On Sat, Jun 14, 2008 at 7:44 PM, Daniel Oberhoff
>> <[EMAIL PROTECTED]> wrote:
>>>
>>> Hi
>>>
>>>
>>> I looked a bit at the problem. I think the quickest way would be to just
>>> add
>>> an nsopenglview as the subview of a plain gdksubwindow which is just an
>>> NSView. Further out it would be nice, if gdkquartz would make onenglview,
>>> and i requested that, but could take a while i suppose.
>>
>> Yeah. Though I don't think gdk creating NSOpenGLView buys you much.
>
> Think so? I mean, all clutter needs is an OpenglContext to draw into, right?
> Events are completely taken away anyhow.

Well, almost. Actually you'll want to override some methods (drawRect,
isFlipped etc.) which I think you can not do without subclassing. And
creating an NSOpenGLView is about one command anyway.


>> See the attached patches. Quickly testing it basically makes
>> clutter-gtk work. It needs much cleaning up though, especially the
>> header that gets installed, check retain/release balance, be more
>> clear when it's OK to rely passing messages to NULL self->window to be
>> ignored, and when not, etc.
>>
>> Happy hacking.
>
> K, I will give them a shot. They are against svn?

Yes, trunk around the time of the timestamp in the second patch.


>>> I am scared of autotools, so maybe if someone helps me set up the osx
>>> target
>>> in autotools I can start hacking the quick way.
>>
>> Imendios jhbuild setup should get you started fairly nicely (though I
>> haven't set up build environment from scratch in a long time.)
>> http://developer.imendio.com/projects/gtk-macosx/build-instructions
>
> No, I mean for clutter-gtk. I build gtk+quartz using macports, which works
> beautifully.

Hmm, if you've built both gtk+quartz and clutter from macports once,
you should have all the necessary libraries on the system already. You
might be missing some version of automake and gtk-doc that are
required when building against svn (which is something using jhbuild
to build gtk+ would provide.) Should be at most a minor inconvenience.


-- 
Tommi Komulainen [EMAIL PROTECTED]
-- 
To unsubscribe send a mail to [EMAIL PROTECTED]

Reply via email to