From: Guillaume Moreau (Guillaume.Moreau++at++caor.ensmp.fr)
Date: 04/20/2000 10:19:53
hello,
I am trying to adapt the trackball.c example to a C++ application.
Therefore I am merging pieces of perfly with it. Point is that I want to
use standard X input, and no pfuCollect. my problem is quite easy to
understand : if I do (in C):
pfiInit();
Shared->trackball = pfiCreate2DIXformTrackball(arena);
Shared->tbInput = pfiGetIXformInputCoordPtr(Shared->trackball);
everything is fine, but if i do:
pfiInit();
shared->xformer = new(pfGetSharedArena()) pfiInputXformTrackball;
assert(shared->xformer != NULL);
shared->tbInput = shared->xformer->getInputCoordPtr();
assert(shared->tbInput != NULL);
the second assertion fails. when I read the man page, it seems quite
normal... So my questions are:
- why is the C example running OK ?
- are there any C++ doc or samples ?
- what did I miss ?
pfThanks,
Guillaume
-- Guillaume Moreau mailto:moreau++at++caor.ensmp.fr Equipe Réalité Virtuelle & Réalité Augmentée http://caor.ensmp.fr Centre de Robotique Tel : (+33) 1 40 51 94 98 Ecole des Mines de Paris Fax : (+33) 1 43 26 10 51
This archive was generated by hypermail 2b29 : Thu Apr 20 2000 - 10:15:21 PDT