[info-performer] problem with passthrough data

Date view Thread view Subject view Author view

From: Michael Weyel (michael.weyel++at++tuebingen.mpg.de)
Date: 11/13/2003 00:18:37


Hi.

I got a problem using passthrough data for the draw-callback. What I want to
do is to pass it a class that is to handle the drawing of overlays using
gl-functions. This class internally stores some pointers to all objects that
should be drawn (like text, images and so on).

For passing the data to the draw callback, I defined a structure that
contains an object of my overlay-class and an interger (test-)value. I
allocate memory once using allocChanData(sizeof(PassData)). Before every
call to pfFrame(), I then copy my overlay-object into the PassData-structure
(at that time, it contains valid pointers to the sub-objects), and call
passChanData(). But when I check the values of the pointers in the draw
callback, they are totally different and the overlay drawing doesn't work.
The integer test-value is passed correctly.

The strange thing is that the same code is working perfectly when compiled
with the MS VC 7 compiler and executed on a Windows machine, but produces
the described errors when compiled with gcc 3.2.3 so maybe this is a
compiler-specific problem?

Any other guesses?

Thanks in advance,
Michael

Michael Weyel

Max-Planck-Institute for Biological Cybernetics
Dept. Buelthoff
VR-Group

Spemannstr. 38

72076 Tuebingen, Germany
Phone: (+49 7071) 601 - 621


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu Nov 13 2003 - 00:32:54 PST