Re: Quartz 2D drawing problems
Re: Quartz 2D drawing problems
- Subject: Re: Quartz 2D drawing problems
- From: Troy Dawson <email@hidden>
- Date: Sat, 15 Nov 2003 20:31:48 -0800
On Nov 12, 2003, at 11:34 PM, Michael Schmidt wrote:
>
> There's not enough information here for anyone to help you. Show us
>
> the code.
>
>
Ok, I figured out a minimum example. I've done the following steps:
>
>
- created a new cocoa-application project in Xcode
>
- created a subclass of NSView
>
- put a custom view of this class into the app window
>
>
The drawRect function of my NSView subclass looks like this:
funny thing is your example works correctly when piped through
panther's new CGGL feature:
CGLContextObj ctx = (CGLContextObj) [[self openGLContext]
CGLContextObj];
CGSize& size = (CGSize&) rect.size;
cg_ctx = CGGLContextCreate(ctx, size, cg_space);
your view needs to be an NSOpenGLView with associated OpenGL plumbing
for this to work (I think).
CGGLContextCreate() is currently a mystery function, not searchable on
google, deja.com, nor on the ADC search results.
it is located in CoreGraphic's CGGLContext.h
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.