lpDDSBack->Blt(NULL, NULL, NULL, DDBLT_COLORFILL, &ddbltfx);
DDBLTFX ddbltfx;
ddbltfx.dwSize = sizeof(ddbltfx);
ddbltfx.dwFillColor = 0L;
That'll be trouble if you're trying to keep all your polygons onscreen, but should work otherwise.
Jonathan
lpDDSBack->Blt(NULL, NULL, NULL, DDBLT_COLORFILL, &ddbltfx);
DDBLTFX ddbltfx;
ddbltfx.dwSize = sizeof(ddbltfx);
ddbltfx.dwFillColor = 0L;
That'll be trouble if you're trying to keep all your polygons onscreen, but should work otherwise.
Jonathan
I have this before my initial surface creations which are declared with the Caps,complex, and flip flags.
//////////////////////////////////
memset(&ddsd, 0, sizeof(ddsd));
ddsd.dwSize = sizeof(ddsd);
/////////////////////////////////
then after the primary surface has been created I zero out the ddsCaps structure the same as above except with (ddsCaps).
Is there something else I have to do to get rid of the garbage?
------------------
Still Learning...