Had to add OpenGL headers in DeformableChipmunk Demo

Discuss any Chipmunk bugs here.

Had to add OpenGL headers in DeformableChipmunk Demo

Postby cjhorton » Sat Mar 09, 2013 12:20 am

Hi Scott,

In the DeformableChipmunk Demo, I got a lot of 'implicit declaration in C99' errors for the following code segment in Xcode 4.6. Including the OpenGL headers resolved it. It has been a couple of versions of Xcode since I ran it last and it worked fine.

-Jay

Code: Select all
-(void)drawUnderlay
{
   glPixelZoom(PIXEL_SIZE, -PIXEL_SIZE);
   glWindowPos2f(0, 480);
   glDrawPixels(sampler.width, sampler.height, GL_LUMINANCE, GL_UNSIGNED_BYTE, [sampler.pixelData bytes]);
}

cjhorton
 
Posts: 11
Joined: Fri Mar 30, 2012 11:04 pm

Return to Bugs

Who is online

Users browsing this forum: No registered users and 1 guest