• 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: writing a new GUI environment
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: writing a new GUI environment


  • Subject: Re: writing a new GUI environment
  • From: Erich Ocean <email@hidden>
  • Date: Wed, 4 May 2005 13:59:51 -0700


On May 4, 2005, at 1:46 PM, Shawn Erickson wrote:

On May 4, 2005, at 1:36 PM, Erich Ocean wrote:

Mac OS X supports three (or perhaps four or five) distinct GUI enviroments: Carbon, Cocoa, Java, and perhaps QuickTime and OpenGL.

OpenGL => NSGL, AGL, CGL or GLUT (<http://developer.apple.com/qa/qa2001/qa1269.html>)

CGL looks like it *should* be low-level, but in fact, it's only accessible via Carbon or Cocoa:


From http://developer.apple.com/qa/qa2001/qa1269.html:

CGL or Core OpenGL is the lowest accessible interface API for OpenGL. It knows nothing about windowing systems but can be used directly to find both renderer information and as a full screen or off screen interface. It is accessible from both Cocoa and Carbon and is what both NSGL and AGL are built on. A complete Pbuffer interface is also provided. Functionality is provided in via the OpenGL framework and applications can include the OpenGL.h header to access CGL's functionality.

[snip]

If you want to take over the whole the screen then you could just use OpenGL (CGL) and Quartz and do all your own drawing.

I'd like to use CGL *without* Carbon or Cocoa; I'm perfectly happy doing my own window management, so the full-screen thing would work. (It would be *nice* to be a full citizen in Mac OS X, but since this is for educational purposes, I can live with that.) What I'm concerned about is receiving keyboard and mouse events without having Carbon or Cocoa linked in. I'm getting the impression that that isn't possible.


Does anyone know how Apple's X implementation is done? It's not a Carbon or Cocoa app AFAIK...

Best, Erich

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: writing a new GUI environment
      • From: chuck remes <email@hidden>
    • Re: writing a new GUI environment
      • From: Markus Hitter <email@hidden>
    • Re: writing a new GUI environment
      • From: Shawn Erickson <email@hidden>
    • Re: writing a new GUI environment
      • From: Jonas Maebe <email@hidden>
References: 
 >writing a new GUI environment (From: Erich Ocean <email@hidden>)
 >Re: writing a new GUI environment (From: Shawn Erickson <email@hidden>)

  • Prev by Date: Re: writing a new GUI environment
  • Next by Date: Re: How to know when memory pages are swapped?
  • Previous by thread: Re: writing a new GUI environment
  • Next by thread: Re: writing a new GUI environment
  • Index(es):
    • Date
    • Thread