Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cpPolyShapeNewRaw is not defined #90

Closed
IceDragon200 opened this issue Oct 13, 2014 · 2 comments
Closed

cpPolyShapeNewRaw is not defined #90

IceDragon200 opened this issue Oct 13, 2014 · 2 comments
Assignees
Milestone

Comments

@IceDragon200
Copy link

cpPolyShapeNewRaw is present in the include/cpPolyShape.h, but is never defined

@darkuranium
Copy link
Contributor

I can confirm that this problem persists as of 7.0.0.

Temporary workaround:

#if CP_VERSION_MAJOR == 7 && CP_VERSION_MINOR == 0 && CP_VERSION_RELEASE == 0
/* fix missing cpPolyShapeNewRaw */
#define cpPolyShapeNewRaw(body, count, verts, radius)   ((cpShape*)cpPolyShapeInitRaw(cpPolyShapeAlloc(), body, count, verts, radius))
#endif

If you need an actual function pointer to cpPolyShapeNewRaw, then you're going to have to write your own function, of course.

@slembcke
Copy link
Owner

bc94dbe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants