|
|
Version: 1.0 Posted: 2004-03-26 Build Requirements: Xcode Runtime Requirements: Mac OS X Download Sample (GLCarbonCGLFullScreen.zip, 207.7K) |
||||
DescriptionThis sample demonstrates a full screen CGL application which uses Carbon events to drive the user input. Additionally, this sample shows the correct way to modify the display or pixel depth used for full screen OpenGL with CGL. Finally, this sample shows how to use Quickdraw fonts in as OpenGL bitmaps with CGL. - This sample should present a reasonably complete correctly formed Carbon Event based application which can be used as a starting point for CGL full screen Carbon based OpenGL applications. - Like the related other OpenGL samples sample this sample also has a well structured virtual track ball that has an updated event interface to deal with the issue of full screen contexts and multiple displays - Again, like other samples, this sample contains stand alone code for retrieving OpenGL capabilities and associating these with graphics device. Capabilities collected include; device identification from OpenGL, CoreGraphics and Carbon, device geometry and refresh rates, VRAM and texture RAM, texture units and texture limits, OpenGL version, and OpenGL functionality. The OpenGL functionality collected is set up to correct coalesce extension and version information into one capability flag allowing developers to quickly determine if a renderer has a specific capability, whether it is exposed via OpenGL extensions or in the core functionality. Furthermore this functional information represents the full set of functionality for OpenGL on Mac OS X at the time of the sample posting. Developers are free to add additional checks or remove unneeded ones to fit their intended OpenGL usage. Document Revision History
|
|