Skip to content

Instantly share code, notes, and snippets.

@slembcke
Created October 19, 2011 17:17
Show Gist options
  • Save slembcke/1298981 to your computer and use it in GitHub Desktop.
Save slembcke/1298981 to your computer and use it in GitHub Desktop.
-(void) draw;
{
glDisableClientState(GL_COLOR_ARRAY);
glDisableClientState(GL_TEXTURE_COORD_ARRAY);
glDisable(GL_TEXTURE_2D);
glPushMatrix(); {
glScalef(CC_CONTENT_SCALE_FACTOR(), CC_CONTENT_SCALE_FACTOR(), 1.0);
glLineWidth(1.0f);
cpSpaceEachShape(space.space, drawShape, NULL);
glColor4f(0.5f, 1.0f, 0.5f, 1.0f);
cpSpaceEachConstraint(space.space, drawConstraint, NULL);
} glPopMatrix();
glEnableClientState(GL_COLOR_ARRAY);
glEnableClientState(GL_TEXTURE_COORD_ARRAY);
glEnable(GL_TEXTURE_2D);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment