• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Quartz 2D drawing problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Quartz 2D drawing problems (From: Michael Schmidt <email@hidden>)
 >Re: Quartz 2D drawing problems (From: John Randolph <email@hidden>)
 >Re: Quartz 2D drawing problems (From: Michael Schmidt <email@hidden>)

  • Prev by Date: Re: @try and @catch
  • Next by Date: Identifying unique login sessions
  • Previous by thread: Re: Quartz 2D drawing problems
  • Next by thread: Cocoa Controller examples
  • Index(es):
    • Date
    • Thread