From: Yoram Shahak (yoram++at++dreamteam-ltd.com)
Date: 10/11/2000 07:18:54
Hi,
I am trying to implement background texturing using glDrawPixels in my
draw call back.
my code looks something like this :
void drawCallBack(pfChannel *chan, void *data)
{
preDraw(chan, data);
pfDraw();
}
void preDraw()
{
chan->clear();
glClearStencil(0x0);
glClear(GL_STENCIL_BUFFER_BIT);
pfVec3 farPlaneLL, dummy;
chan->getFar(farPlaneLL, dummy, dummy, dummy);
glRasterPos3f(farPlaneLL[0], farPlaeLL[1], farPlaneLL[2]);
glDrawPixels(winWidth, winHeight, imageFormat,GL_UNSIGNED_INT,
imageBuffer);
}
As a result I get the background image flickering if at all seen.
Does performer clear the gl buffer in pfDraw ?
Am I going totally the wrong way about implementing this ?
Please help .
Thanx.
:o)
Yoram Shahak
DreamTeam ltd.
This archive was generated by hypermail 2b29 : Wed Oct 11 2000 - 07:15:14 PDT