Pages: 2
Rating : ⭐⭐⭐⭐⭐
Price: $10.99
Page 1 Preview
and provide conly api between code modules

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

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).

You are viewing 1/3rd of the document.Purchase the document to get full access instantly

Immediately available after payment
Both online and downloadable
No strings attached
How It Works
Login account
Login Your Account
Place in cart
Add to Cart
send in the money
Make payment
Document download
Download File

Uploaded by : Harper Lewis-Hughes

PageId: ELI874FA59