I followed the PDF instruction of the development kit, everything
compiles fine, but no single call to the MyMessageHandler...
Code: Select all
#ifdef WIN32
INT WINAPI WinMain(HINSTANCE hInst,HINSTANCE hPrevInst, LPSTR lpCmdLine,INT nCmdShow)
{
glutInit(&nCmdShow, &lpCmdLine);
#else
int main(int nCmdShow,char ** lpCmdLine)
{
glutInit(&nCmdShow, lpCmdLine);
#endif
glutInitDisplayMode(GLUT_RGBA | GLUT_DOUBLE);
glutInitWindowSize(xres,yres);
glutCreateWindow("mental images High Performance Ray Tracing");
initialize();
glutDisplayFunc(displayBuffer);
glutReshapeFunc(reshape);
glutKeyboardFunc(keyboard);
glutMouseFunc(mouse);
glutMotionFunc(motion);
glutIdleFunc(idle);
TDx::OSErr result = TDx::InstallConnexionHandlers(TDx::MyMessageHandler, 0L, 0L);
/*UInt16*/ clientID = TDx::RegisterConnexionClient((unsigned short int) '3Dm1'/*0/*'MCTt'*/, 0/*name/*(unsigned char *) "\pCarDisplay"*/,
TDx::kConnexionClientModeTakeOver, kConnexionMaskAll);
glutMainLoop();
TDx::UnregisterConnexionClient(clientID);
TDx::CleanupConnexionHandlers();
return 0;
}
-Alex