Getting errors using bullet demo in MFC
Posted: Wed May 21, 2014 4:09 am
Hi, I want to use a MFC program to show the CollisionInterfaceDemo. I call the bullet Physics in the menu code. The code is:
void CMainFrame::OnCollisionDetection()
{
// TODO: Add your command handler code here
int screenWidth = 640;
int screenHeight = 480;
BulletCollisionDetection* pCollisionDetection = new BulletCollisionDetection;
pCollisionDetection->initPhysics();
pCollisionDetection->clientResetScene();
glutmain(__argc, __argv,screenWidth,screenHeight,"Collision Interface Demo",pCollisionDetection);
}
I compile the code, the VS2010 compiler says that:
error C2661: 'GlutDemoApplication::operator new' : no overloaded function takes 3 arguments
Can anybody help me? Thanks.
void CMainFrame::OnCollisionDetection()
{
// TODO: Add your command handler code here
int screenWidth = 640;
int screenHeight = 480;
BulletCollisionDetection* pCollisionDetection = new BulletCollisionDetection;
pCollisionDetection->initPhysics();
pCollisionDetection->clientResetScene();
glutmain(__argc, __argv,screenWidth,screenHeight,"Collision Interface Demo",pCollisionDetection);
}
I compile the code, the VS2010 compiler says that:
error C2661: 'GlutDemoApplication::operator new' : no overloaded function takes 3 arguments
Can anybody help me? Thanks.