Had to add OpenGL headers in DeformableChipmunk Demo

Discuss any Chipmunk bugs here.
Post Reply
cjhorton
Posts: 11
Joined: Fri Mar 30, 2012 11:04 pm
Contact:

Had to add OpenGL headers in DeformableChipmunk Demo

Post 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]);
}

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests