Page 1 of 1

Had to add OpenGL headers in DeformableChipmunk Demo

PostPosted: Sat Mar 09, 2013 12:20 am
by cjhorton
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]);
}