Over 10 Million Study Resources Now at Your Fingertips


Download as :
Rating : ⭐⭐⭐⭐⭐
Price : $10.99
Language:EN
Pages: 2

And provide c-only api between code modules

704 CHAPTER 20 OpenGL on Mac OS X

LISTING 20.2 Continued

// Paint
-(void) drawRect: (NSRect) bounds
{
RenderScene();

glFlush(); // All done!

OpenGL with Cocoa 705

void ShutdownRC(void);

void RenderScene(void);

Hang on a Second There!

At this point in time, the astute reader may be imagining the sound of screeching tires on pavement. Was that a glFlush you saw after RenderScene in Listing 20.2 instead of some sort of buffer swap call? Indeed it was, and this brings us to an interesting subtlety of OpenGL on Mac OS X (as well as a nice segue into the next section).

How It Works
Login account
Login Your Account
Add to cart
Add to Cart
Payment
Make payment
Document download
Download File
PageId: ELI874FA59
img
Uploaded by :
8X8OyRxx
Page 1 Preview
and provide conly api between code modules
Sell Your Old Documents & Earn Wallet Balance