From: Paolo Farinelli (paolo++at++sgi.com)
Date: 09/03/2004 19:33:56
Hi Denis,
thanks for your feedback.
Take a look at the various pfvMousePicker samples inside
%PFROOT%\Src\pguide\libpfv\picker.
There's a bunch of simple examples with gradually more
complex use of the pfvPicker (and derived classes) API.
You should actually not call the pick method directly, but
call picker->update instead (once per frame). Picking is done
within the update method, even though this doesn't seem to be
documented in our manpage.
Let me know if you need further assistance.
Regards,
Paolo
Denis Mohnhaupt wrote:
>Greetings,
>
>I am developing a MFC-application with MS Visual Studio.Net and Performer
>(latest version 3.1.1.).
>I want to use a pfvMousePicker for picking. I included the
>"Performer/pfv/pfvMousePicker.h" and linked the libpfv.lib (actually all
>other pf libs as well). At the moment I use the mousepicker only in two
>lines of code:
>
>pfuMouse* pm = m_pPicker->getMouse();
>pfvInteractor* pia = m_pPicker->pick();
>
>Where m_pPicker is of Type pfvMousePicker*
>When I build he reports an linker error LNK2019, where he complains about an
>unresolved external symbol "[...]__declspec(dllimport) public: class
>pfvInteractor * __thiscall pfvMousePicker::pick(void)"
>(__imp_?pick++at++pfvMousePicker++at++++at++QAEPAVpfvInteractor++at++++at++XZ)', [...]"
>
>Strange that he doesent dislike the line above, that member function is
>defined in the same header file.
>
>If anyone could give me a hint, that would be great, i have no idea what the
>problem is.
>
>Cheers,
>Denis
>
>
>
-- Paolo Farinelli paolo++at++sgi.com Member of Technical Staff, OpenGL Performer 1-650-933-1808 Silicon Graphics 1600 Amphitheatre Pkwy, Mountain View, CA 94043
This archive was generated by hypermail 2b29 : Fri Sep 03 2004 - 19:34:04 PDT