pfImageTile q'ing

New Message Reply Date view Thread view Subject view Author view

Dorosky, Christopher G (christopher.g.dorosky++at++lmco.com)
Thu, 03 Dec 1998 22:35:44 -0700


I am new to performer, so i am hoping these answers are easy :)

A have a program set up like this.

fragmet()
 {
   pfImageTile *it

   it->SetReadFunc(ReadTiles);
   it->SetReadQueue(0);
   it->load();
}

ReadTiles(pfImageTile *tile, int aTexels)
{
  FillDataBuffersUp();
  if (tile_not_found()) return 0;
  else return aTexels;
/* If the right number isn't returned, everything blows up */
}

Question 1: Of course this is extremely abbreviated, but even in the
original code, aTexels never seems to be calculated before load(). How is
this information passed?

Question 2: Does the return value somehow do the same thing as
setValidTexels() ?

I wanted to try to go asyncronous, so as a test I left setReadQueue at zero,
and changed ReadTiles to insert pfImageTile * onto a valid pfqueue, which
had a single service procedure of FillDataBuffersUp. I made ReadTiles wait
for queue completion before returning. This worked fine. Problem is, it buys
nothing.

Question 3: Given a valid pfQueue with a working service procedure, how do
you make pfImageTile add the correct information to the queue? Is it solely
with SetReadQueue? If so, is setReadFunc necessary? Will a return value of
aTexels from the pfqueue perform the same action as a return of aTexels from
ReadTiles?

Question 4: Does a queue in this instance have to be a global read queue?

Thanks for any help to any question.

Chris Dorosky
Lockheed Martin Vought Systems


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Thu Dec 03 1998 - 21:35:50 PST

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.