| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
|
What did you have to do to the OpenGL Screensaver project
to make it compile? I downloaded it and (with no changes) it won't
compile. From: quartzcomposer-dev-bounces+tophu=email@hidden [mailto:quartzcomposer-dev-bounces+tophu=email@hidden] On Behalf Of Benjamin Miller Sent: Tuesday, December 06, 2005 4:11 AM To: Christopher Aloi; email@hidden; Steven Halford Subject: Re: Creating a .saver bundle from a Quartz project There are a number of different ways to do this.
Possibly the easiest is, I think it's possible, to make a QCView a subView of
your Screensaver view. There is also some sample code around on
developer.apple.com called something like Cocoa OpenGL Screensaver although I'm
not sure which section it is in (currently offline) that may give you some
ideas. This was my starting point.
The method I finally settled on is to add an
NSOpenGLView subclass as a subView of the ScreenSaverView and use a QCRenderer
to draw into the NSOpenGLView's context.
// Setup
[[QCRenderer alloc] initWithOpenGLContext:[glView
openGLContext] pixelFormat:[glView pixelFormat] file:filePath];
..........
// drawing time
[quartzRenderer renderAtTime:currentTime
arguments:eventAttributes];
.....
[[glView openGLContext] flushBuffer];
......
[glView setNeedsDisplay:YES];
I'm definitely not an experienced
Cocoa developer and have very little experience of OpenGL. The project is
nearing completion and so is becoming untidy and the commenting lacking. So I
can't say I feel very confident to post a tutorial or source.
There is a quite nice site with a
series of tutorials, each dealing with different stages of Cocoa/OpenGL
developement at:
Although not dealing with what you
want to accomplish immediately it looks like a good resource for background
material on Cocoa and OpenGL integration.
Benjamin
On 29 Nov 2005, at 19:59, Christopher Aloi wrote:
http://www.electricdecember.org is an
online advent calendar.
24 days of multi-media digital distractions made by diverse contributors
from Bristol, UK.
Benjamin Miller, Digital Developer
Watershed Media Centre
1 Canon's Road, Harbourside, Bristol, UK. BS1 5TX
t: +44 (0)117 927 6444, f: +44(0)117 921 3958
iChat/AIM: email@hidden |
_______________________________________________ Do not post admin requests to the list. They will be ignored. Quartzcomposer-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden This email sent to email@hidden
| References: | |
| >Re: Creating a .saver bundle from a Quartz project (From: Benjamin Miller <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.