Quicklook preview generator and OpenGL
Quicklook preview generator and OpenGL
- Subject: Quicklook preview generator and OpenGL
- From: Mads Paulin <email@hidden>
- Date: Tue, 27 Apr 2010 19:43:07 +0200
Hi All,
I am getting really frustrated with a weird problem of rendering OpenGL from
a quicklook generator plugin. I hope some of you can give me a hint about
what I am doing wrong.
I am working with some 3D files for which I want to create a quicklook
generator for creating previews of the geometry in the file.
Everything is working perfectly fine when I test the generator using
qlmanage and I am seeing some very nice previews. However when I use the
generator in quicklook, the code to allocate an NSOpenGLPixelFormat object
fails with the messages
quicklookd[63475] invalid pixel format attribute
quicklookd[63475] invalid pixel format
quicklookd[63475] invalid context
I have tried various attribute combinations - including NSOpenGLPFAOffScreen
and NSOpenGLPFAPixelBuffer, but none of them seem to work.
Anyone got any ideas why I cannot allocate OpenGL pixel formats and
NSOpenGLContext from a quicklook generator ?
Thanks,
Mads
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden