Please download and examine
this example for details. It??™s a little bit complex to set up, but once the infrastructure
is in place, it??™s fast and easy.
192 Chapter 10: API Interoperability
Summary
In this chapter, we saw how to read and write QuickTime movies, interfacing
their content with OpenGL. To do so, we relied on previously introduced
techniques for downloading textures, manipulating NSImages, and performing
basic OpenGL con?¬?guration. You should now have a solid idea about how
to use any form of video content accessible via QuickTime with your OpenGL
application.
QuickTime 193
This page intentionally left blank
Chapter 11
Performance
Overview
Performance-tuning your OpenGL application for OS X may well be the most
satisfying part of your project. No other platform can compare with OS X??™s great
set of performance tools, especially for OpenGL-based applications. Because
OpenGL is a ?¬?rst-class citizen on OS X, the implementation and tools have been
given years of scrutiny and improvements to make your optimization process,
dare we say, enjoyable.
Because the implementers of OpenGL??”and, indeed, other 3D graphics APIs??”
face the same performance challenges, the strategy for writing an application
that performs well using those APIs is often the same or at very least similar.
When it comes down to it, you are trying to get vertices and pixels from the
address space of your application to the screen for display.
Pages:
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293