rama++at++graphics.cis.upenn.edu
Thu, 6 Jul 1995 18:53:31 -0400
I am using the perfly setup, which has the
pfChanCullFunc and pfChanDrawFunc specified.
pfChanCullFunc(chan, CullFunc);
pfChanDrawFunc(chan, DrawFunc);
In the DrawFunc, I am doing the following :
void
DrawFunc(pfChannel *chan, void *data)
{
int i,j;
unsigned long smap[(SSIZE*SSIZE)];
PreDraw(chan, data); /* e.g. - clear the viewport */
zbuffer(TRUE);
blendfunction(BF_ONE,BF_ZERO);
zfunction(ZF_LEQUAL);
lsetdepth(0x0,0xffff);
pfClear(PFCL_COLOR|PFCL_DEPTH,NULL);
wmpack(0x0);
pixmode(PM_ZDATA,1);
readsource(SRC_ZBUFFER);
pfDraw(); /* Render the frame */
lrectread((short)0,(short)0,(short)SSIZE-1,(short)SSIZE-1,smap);
for(i=0;i<(SSIZE)/2;i++)
printf("after:%x\n ",smap[i]);
pixmode(PM_DATA,0);
PostDraw(chan, data); /* e.g. - draw HUD, read GL devices */
}
The values that get printed from smap are either only 0 or 10000000.
The other problem is that as I make different windows (other than
performer window) active by clicking the mouse there, the values
toggle :
10000000 for performer window
0 for any other window
I am sure I am doing something very obviously wrong but just unable
to figure it out. I would greatly appreciate any help I can get
about this.
Thanks
Rama
---------------------------------------------------------------------
Rama Bindiganavale
rama++at++graphics.cis.upenn.edu
http://www.cis.upenn.edu/~rama/home.html
---------------------------------------------------------------------
Rama Bindiganavale
rama++at++graphics.cis.upenn.edu
http://www.cis.upenn.edu/~rama/home.html
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:39 PDT